конфигурирую PHP с такими параметрами
./configure --with-apxs2=/usr/sbin/apxs --with-mysql=/usr/include/mysql/ --enable-track-vars \
--enable-sockets --with-config-file-path=/etc --enable-ftp --with-zlib --with-openssl \
--enable-force-cgi-redirect --enable-exif --with-gd --enable-memory-limit --disable-debug \
--disable-rpath --disable-static --with-pic --with-layout=GNU --enable-calendar --enable-sysvsem \
--enable-sysvshm --enable-sysvmsg --enable-trans-sid --enable-bcmath --with-bz2 --enable-ctype \
--with-db4 --with-iconv --enable-filepro --with-gettext --enable-mbstring --enable-shmop \
--enable-wddx --disable-xml --with-xmlrpc --enable-yp --with-zlib --without-pgsql --enable-dbx \
--enable-experimental-zts --without-mm --enable-gd-native-ttf --with-imap-ssl --enable-soap \
--enable-dbase
в итоге выдает такую ошибку
checking for 8-bit clean memcmp... yes
checking for mcrypt support... no
checking for mhash support... no
checking whether to include mime_magic support... no
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.
Вот что пишет config.log
configure:59856: checking for MySQL UNIX socket location
configure:60047: checking for mysql_close in -lmysqlclient
configure:60066: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib conftest.c -lmysqlclient -lpng -lz -ldb -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lssl -lcrypto -ldl -lz 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 60055 "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:60289: checking for mysql_error in -lmysqlclient
configure:60308: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -L/usr conftest.c -lmysqlclient -lz -lpng -lz -ldb -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lssl -lcrypto -ldl -lz 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 60297 "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; }
Дистрибутив Fedora 11
Установлен MySQL (автоматом, еще при инсталяции дистрибутива)
mysql-devel стоит и работает ибо без него конфига останавливалась еще на более ранней стадии.
возможно нужен mysqlclient, но при его установке ругается
rpm -i --nodeps '/home/LEVIAFAN/Downloads/mysqlclient16-5.1.30-1.fc10.remi.i386.rpm'
предупреждение: /home/LEVIAFAN/Downloads/mysqlclient16-5.1.30-1.fc10.remi.i386.rpm: Заголовок V4 DSA signature: NOKEY, key ID 00f97f56
файл /usr/lib/mysql/libmysqlclient.so.16.0.0 из устанавливаемого пакета mysqlclient16-5.1.30-1.fc10.remi.i386 конфликтует с файлом из пакета mysql-libs-5.1.32-1.fc11.i586
файл /usr/lib/mysql/libmysqlclient_r.so.16.0.0 из устанавливаемого пакета mysqlclient16-5.1.30-1.fc10.remi.i386 конфликтует с файлом из пакета mysql-libs-5.1.32-1.fc11.i586
Чесно говоря зашел в полный тупик. Google соответсвенно решить вопрос не помог.