I'm having issues compiling php v4.2.2 on Redhat 9.0. The goal ultimately is to compile in mcrypt support, but that's a bit down the road from here. I've chased down the dependencies for the configure options below (I think), but it still won't configure.

It appears to be choking on MySql (v3.23.54). The error I get is something like:

/usr/bin/ld : cannot find -lmysqlclient

However, /etc/ld.so.conf appears to point to the correct directory:
/usr/bin/mysql, the contents of which are listed below.

Any help will be greatly appreciated.
-Ian

-----------------------------
Configure options:

--host=i386-redhat-linux --build=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db3 --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-regex=system --with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --without-oci8 --with-pear=/usr/share/pear --with-kerberos=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr
---------------------------------------------------------


config.log:

configure:40115: checking for mysql_error in -lmysqlclient
configure:40134: gcc -o conftest -g -O2
-L/usr/lib -L/usr/lib/mysql
-Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib conftest.c -lmysqlclien
t -lgmp -lgd -lfreetype -lpng -lz -ljpeg -lz -lm -lz -lxml2 -ldb -lgdbm -lcurl
-lcrypto -lssl -lz -ldl -lresolv -lcom_err -lk5crypto -lkrb5 -lgssapi_krb5 -lcry
pto -lssl -lcurl -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lres
olv -lcrypt 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 40123 "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; }
-----------------

Contents of /usr/lib/mysql

libmysqlclient_r.so.10
libmysqlclient.so.10
libmysqlclient_r.so.10.0.0
libmysqlclient.so.10.0.0

Reply via email to