440hz
php.ru
Код:
./configure --with-mysql
...
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_errno in -lmysqlclient... no
configure: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information.
[root@CORE-1 php-5.3.6]# ldconfig -p | grep mysql
libmysqlclient_r.so.15 (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient_r.so.15
libmysqlclient_r.so.15 (libc6) => /usr/lib/mysql/libmysqlclient_r.so.15
libmysqlclient_r.so (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient_r.so
libmysqlclient.so.15 (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient.so.15
libmysqlclient.so.15 (libc6) => /usr/lib/mysql/libmysqlclient.so.15
libmysqlclient.so (libc6,x86-64) => /usr/lib64/mysql/libmysqlclient.so
Код:
...
configure:59920: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden -Wl,-rpath,/usr/lib/mysql
-L/usr/lib/mysql -L/usr/lib conftest.c -lmysqlclient -lrt -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz
-lm 1>&5
/usr/bin/ld: cannot find -lmysqlclient
Код:
cat /etc/ld.so.conf.d/mysql-x86_64.conf
/usr/lib64/mysql