Trying to compile PHP 5.3.2 on CentOS 5.5 64bit with Percona 5.1.47 rel11.1 64bit when i try either
./configure --with-apxs2=/usr/sbin/apxs --with-mysql --with-mysqli=/usr/bin/mysql_config --with-libdir=lib64
or
./configure --with-apxs2=/usr/sbin/apxs --with-mysql --with-mysqli=/usr/bin/mysql_config
or
./configure --with-apxs2=/usr/sbin/apxs --with-mysql/usr --with-mysqli=/usr/bin/mysql_config --with-libdir=lib64
during make command i get
-lxml2 -lz -lm -lcrypt -o libphp5.lagcc: /usr/lib64/mysql/libmysqlclient.so: No such file or directorymake: *** [libphp5.la] Error 1
libmysql* files only exist in /usr/lib64 but php is looking for /usr/lib64/mysql directory as /usr/lib is empty.
ls -lah /usr/lib64/ | grep libmysqllrwxrwxrwx 1 root root 26 Jul 10 01:22 libmysqlclient_r.so → libmysqlclient_r.so.16.0.0lrwxrwxrwx 1 root root 26 Jul 10 01:22 libmysqlclient_r.so.16 → libmysqlclient_r.so.16.0.0-rwxr-xr-x 1 root root 4.9M Jun 25 20:21 libmysqlclient_r.so.16.0.0lrwxrwxrwx 1 root root 24 Jul 10 01:22 libmysqlclient.so → libmysqlclient.so.16.0.0lrwxrwxrwx 1 root root 24 Jul 10 01:22 libmysqlclient.so.16 → libmysqlclient.so.16.0.0-rwxr-xr-x 1 root root 4.9M Jun 25 20:19 libmysqlclient.so.16.0.0ls -lah /usr/lib/ | grep libmysql
I found this method http://default.io/2009/11/working-around-the-percona-mysql-r pm-dependancy-conflict-on-rhelcentos-5/ but not sure if it’s best way to do it ? Or a symlink ?? Got the exact symlink link I have to run ?
what’s best ?
thanks