I'm trying to install PHP 4.2.1 on RH7.2 with support for MySQL 3.23.49a I'm getting the following error when running configure:
checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information The relevant output from config.log is contained below: configure:40051: checking for mysql_close in -lmysqlclient configure:40070: gcc -o conftest -g -O2 -DLINUX=22 -DEAPI -DEAPI_MM -DEAPI_MM_CORE_PA TH=/var/run/httpd.mm -L/usr//lib -Wl,-rpath,/usr//lib -L/usr//lib conftest.c -lmysqlclient -lcrypt -lpam -lgd -lpn g -lz -ljpeg -lz -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt -lgssapi_krb5 -lkrb 5 -lk5crypto -lcom_err 1>&5 /usr/bin/ld: cannot find -lgssapi_krb5 collect2: ld returned 1 exit status configure: failed program was: #line 40059 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_close(); int main() { mysql_close() ; return 0; } configure:40195: checking for mysql_error in -lmysqlclient configure:40214: gcc -o conftest -g -O2 -DLINUX=22 -DEAPI -DEAPI_MM -DEAPI_MM_CORE_PA TH=/var/run/httpd.mm -L/usr//lib -L/usr//lib -Wl,-rpath,/usr//lib -L/usr//lib -Wl,-rpath,/usr/ -L/usr/ conftest.c -lmysqlcl ient -lz -lcrypt -lpam -lgd -lpng -lz -ljpeg -lz -lcrypt -lresolv -lm -ldl -lnsl -lr esolv -lcrypt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 1>&5 /usr/bin/ld: cannot find -lgssapi_krb5 collect2: ld returned 1 exit status configure: failed program was: #line 40203 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_error(); int main() { mysql_error() ; return 0; } The configure statement uses "--with-mysql=/usr" and the mysql library files are under /usr/lib/mysql. I have also added /usr/lib/mysql and /usr/lib to the ld.so.conf file and run ldconfig. Before trying to build PHP I installed all the MySQL rpms (mysql, client, shared, devel) successfully and I was able to start, configure and use the MySQL database with no problems. Any ideas would be greatly appreciated. Thanks!