Click to See Complete Forum and Search --> : **PLEASE HELP WITH PHP**


Rnehora
08-21-2001, 08:40 PM
Hi, I'm trying to get my php to work with mysql and every time i try to run "make" i get this. . . The last two lines are where the errors are. Can someone please explain this to me.
Thanks


make[1]: Entering directory `/home/rnehora/prog/php-4.0.6'
/bin/sh /home/rnehora/prog/php-4.0.6/libtool --silent --mode=link gcc -I. -I/home/rnehora/prog/php-4.0.6/ -I/home/rnehora/prog/php-4.0.6/main -I/home/rnehora/prog/php-4.0.6 -I/www/include -I/home/rnehora/prog/php-4.0.6/Zend -I/home/rnehora/prog/php-4.0.6/ext/mysql/libmysql -I/home/rnehora/prog/php-4.0.6/ext/xml/expat/xmltok -I/home/rnehora/prog/php-4.0.6/ext/xml/expat/xmlparse -I/home/rnehora/prog/php-4.0.6/TSRM -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -o libphp4.la -rpath /home/rnehora/prog/php-4.0.6/libs -avoid-version stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl -lcrypt -lresolv -lm -ldl -lnsl -lresolv
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/home/rnehora/prog/php-4.0.6'
make: *** [all-recursive] Error 1

Strike
08-21-2001, 08:48 PM
you need libmysqlclient

find the package for this for your distribution and install it ... or post your distribution and someone can link you, maybe

Rnehora
08-21-2001, 09:56 PM
Thank You, i've tried searching for it but can not find it..can you help me please, i am running redhat 7.1

jcrowe
08-23-2001, 12:47 PM
Here you go.

http://www.rpmfind.net//linux/RPM/redhat/7.1/i386/mysql-3.23.36-1.i386.html