HELP REQD /usr/bin/ld: cannot find -lpng
| From: | Abhishek Rana | Date: | Tue, 16 Jul 2002 20:04:54 +0000 |
| Subject: | HELP REQD /usr/bin/ld: cannot find -lpng | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-7773@lists.php.net to get a copy of this message | ||
Hi !
I am trying to install php-4.0.3pl1 with apache.
I failed at step:
./configure --with-mysql
--with-apxs=/PATH TO/www/bin/apxs
I have apache server 1.3.26 installed at /PATH TO/www
Following is the debug.log file contents:
----------------------------------
CONFIGURE: './configure' '--with-mysql'
'--with-apxs=/PATH TO/www/bin/apxs'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES: -I/PATH TO/www/include
-I$(top_builddir)/Zend
-I$(top_srcdir)
-I/PATH TO/php-4.0.3pl1/ext/mysql/libmysql
LDFLAGS:
LIBS: -lpng -lz -lgd -lresolv -lm -ldl -lcrypt
-lnsl -lresolv
DLIBS:
SAPI: apache
PHP_RPATHS:
uname -a: Linux MACHINENAME 2.4.9-31smp #1
SMP Tue
Feb 26 06:55:00 EST 2002 i686 unknown
gcc -o conftest -g -O2 conftest.c -lpng -lz -lgd
-lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5
/usr/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
----------------------------------
where /PATH TO/ is a shared area where I have r/w
permissions, and MACHINENAME is the qualified host name
from where I am trying to install.
Any help/suggestions would be appreciated.
Thanks
Abhishek