Здравствуйте, уважаемые!
У меня возникла проблема. Существует необходимость компилировать PHP (возможности ставить из пакетов нет, т.к. требуется --with-oci8=instantclient,/usr/lib/oracle/11.1.0.1/client/lib)
Делаю так:
./configure --prefix=/usr/local/php \
[skip]
--with-mysql=/usr/lib64/mysql/ \
--with-mysqli=/usr/lib64/mysql/mysql_config \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
[skip]
В результате, чего получаю:
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 59854 "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; }
-------------------------------------------------------------------
Сразу проверяю:
[root@fastpay vhosts]# locate libmysqlclient.a
/usr/lib/mysql/libmysqlclient.a
/usr/lib64/mysql/libmysqlclient.a
[root@fastpay vhosts]# locate mysql_config
/usr/bin/mysql_config
/usr/lib64/mysql/mysql_config
То есть все библиотеки есть, т.к. mysql-devel установлен. В чем может быть причина? Инет облазил, гугл замучал, но ответа так и не нашел.