Discussion:
[PHP-INSTALL] configure: error: wrong mysql library version or lib not found
Tseveendorj Ochirlantuu
2011-02-21 02:18:01 UTC
Permalink
Hello,

I'm trying to compile php 5.2.17 from source with following

sudo ./configure --prefix=/usr --enable-fastcgi --enable-fpm --with-mysql
--with-mysqli --enable-force-cgi-redirect --with-fpm-conf=/etc/php5
--with-fpm-log=/var/log/php5 --with-fpm-pid=/var/log/php5 --with-mhash
--with-mcrypt --with-curl --enable-mbstring --enable-soap --with-bz2
--enable-sockets --enable-zip --with-pdo-mysql

But I got the following error during compiling

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... (cached) yes
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check
config.log for more information.

The environment is

Ubuntu 10.10 amd64
php 5.2.17
libmysqlclient16, libmysqlclient16-dev installed
mysql 5.1 installed

What did I wrong ?

Sincerely,
Eberx

Loading...