I'm having a hard time trying to configure/compile PHP for 64 bit.
This is the configure options that I'm using:
Code:
./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --datadir=/usr/share --libdir=lib64 --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 --disable-debug --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-regex=system --with-xmlrpc=shared --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-wddx --with-pear=/usr/share/pear --with-mysql=shared,/usr --with-snmp=shared,/usr --enable-ucd-snmp-hack --enable-bcmath --enable-shmop --enable-calendar --enable-mbstring=shared --enable-mbregex --with-apxs2=/usr/local/apache2/bin/apxs --with-xsl --enable-mbstring --with-pspell
The configure crashes out with:
Code:
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes, shared
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
In the config.log file it doesn't mention anything about MySQL having problems, but I do get quite a few messages like this:
Code:
/usr/bin/ld: skipping incompatible /usr/lib/libgmp.so when searching for -lgmp
/usr/bin/ld: skipping incompatible /usr/lib/libgmp.a when searching for -lgmp
/usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
/usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libdb-4.3.so when searching for -ldb-4.3
/usr/bin/ld: skipping incompatible /usr/lib/libdb-4.3.a when searching for -ldb-4.3
/usr/bin/ld: skipping incompatible /usr/lib/libcurl.so when searching for -lcurl
/usr/bin/ld: skipping incompatible /usr/lib/libcurl.a when searching for -lcurl
/usr/bin/ld: skipping incompatible /usr/lib/libbz2.so when searching for -lbz2
/usr/bin/ld: skipping incompatible /usr/lib/libbz2.a when searching for -lbz2
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libxml2.so when searching for -lxml2
I can't understand why it's looking in /usr/lib/ for these libraries when I've specified --libdir=lib64 (also tried --libdir=/usr/lib64).
Can anyone help?
Thanks