Hello friends,
Well I am trying to compile php 5.3 from sources..
I've met every other required dependencies, but I am getting an error while configuring, which I don't seem to understand well.
I am configuring it using below
Code:
./configure --prefix=/usr --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-mod-charset --with-libxml-dir --with-openssl --with-kerberos --with-pcre-regex --with-zlib --with-bz2 --with-curl --with-dbm --enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --with-t1lib --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext --with-gmp --with-mhash --with-imap-ssl --enable-intl --enable-mbstring --with-mcrypt --with-mssql --with-mysql --with-mysqli --enable-embedded-mysqli --with-apxs2 --with-snmp --enable-zip
The error I am getting is following
Code:
checking whether to enable multibyte regex support... yes
checking whether to check multibyte regex backtrack... yes
checking for external libmbfl... no
checking for external oniguruma... no
checking for variable length prototypes and stdarg.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... yes
checking for unistd.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/times.h... yes
checking for stdarg.h... (cached) yes
checking size of int... (cached) 4
checking size of short... (cached) 2
checking size of long... (cached) 8
checking for working const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for 8-bit clean memcmp... yes
checking for stdarg.h... (cached) yes
checking for mcrypt support... yes
checking for libmcrypt version... >= 2.5.6
checking for mcrypt_module_open in -lmcrypt... yes
checking for MSSQL support via FreeTDS... yes
checking for dnet_addr in -ldnet_stub... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /var/tmp/mysql.sock
checking for mysql_close in -lmysqlclient... yes
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... yes
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.
I really searched alot but couldn't find anything valuable.
I have following mysql packages installed
Code:
mysql-server-5.0.77-3.el5
mysql-5.0.77-3.el5
perl-DBD-MySQL-3.0007-2.el5
mysql-bench-5.0.77-3.el5
mysql-devel-5.0.77-3.el5
My system is a 64 bit system...
I have libmysqlclient.so in /usr/lib64/mysql/
I also made a symlink of it in /usr/lib64
But still no luck.
Any help will be greatly appreciated ....
Thanks