|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-04-15 12:41 UTC] diwakar211 at gmail dot com
Description: ------------ while doing configure in php-5.2.4 # ./configure --prefix=/opt/freeware --with- apxs2=/opt/freeware/apache/bin/apxs --disable-cgi --enable-cli -- with-config-file-path=/opt/freeware/apache/conf --with- mysql=/opt/freeware/mysql --with-zlib-dir=/opt/freeware It gives configure: error: mysql configure failed. Please check config.log for more information. I refered some posts in this site, the solusion they given is to install 32 bit version of mysql I have installed mysql-5.0.45-1 32 bit, but still i am getting the error. Reproduce code: --------------- configure Expected result: ---------------- nothing Actual result: -------------- # ./configure --prefix=/opt/freeware --with- apxs2=/opt/freeware/apache/bin/apxs --disable-cgi --enable-cli -- with-config-file-path=/opt/freeware/apache/conf --with- mysql=/opt/freeware/mysql --with-zlib-dir=/opt/freeware " checking for MING support... no checking for mSQL support... no checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no 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. " -- PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 15:00:01 2025 UTC |
I'm using RedHat EL5 64bit and I encounter the same problem. I installed both 32 and 64 version of libmysqlclient.so which located in /usr/lib/mysql and /usr/lib64/mysql respectively. Sounds like the configure script seek for only /usr/lib/mysql. Here is the error in config.log configure:60459: gcc -o conftest -I/usr/include -g -O2 -pthread -D_REENTRANT -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient_r -lz -lmcrypt -lltdl -lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lgdbm -lcurl -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lz 1>&5 /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.so when searching for -lmysqlclient_r /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.a when searching for -lmysqlclient_r /usr/bin/ld: cannot find -lmysqlclient_r collect2: ld returned 1 exit status configure: failed program was: #line 60448 "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; }