CentOS не собирается php из исходников. Не находит mysql

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
 

440hz

php.ru
Код:
./configure --with-mysql --with-zlib-dir=/usr
...

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_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
с этим то понятно. он библиотек mysql не находит. вот в чем нипонятка...

Код:
configure:59659: checking for MySQL support
configure:59703: checking for specified location of the MySQL UNIX socket
configure:59901: checking for mysql_close in -lmysqlclient
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  -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 59909 "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:60143: checking for mysql_error in -lmysqlclient
configure:60162: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden  -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib  -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient  -lz -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 60151 "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; }
 

dadoc

Новичок
Вот не плохой репозиторий http://iuscommunity.org/ поддерживается rackspace. Там есть 5.3 и они более менне регулярно обновляют до последних версий
 
Сверху