http://twolines.net/wp-content/themes/averin/images/top-banner.pnghttp://twolines.net/wp-content/themes/averin/images/ads72890.jpghttp://twolines.net/wp-content/themes/averin/images/top-banner.pnghttp://twolines.net/wp-content/themes/averin/images/ads72890.jpghttp://twolines.net/wp-content/themes/averin/images/top-banner.png

PHP Relocating error with libmysqlclient_16 and cPanel

Provided that you are running CentOS 6 with cPanel and try to compile a new PHP using easyApache, you might run into the following (or similar) error:

“/usr/local/bin/php: relocation error: /usr/local/bin/php: symbol zlibVersion, version libmysqlclient_16 not defined in file libmysqlclient.so.16 with link time reference”

It happened to me today and I’ve spent quite some time checking what eventually got wrong. It turned our that the stock CentOS mysql libs conflicts with mySQL-devel package from cPanel. The solution was to remove the libs package and re-install it (by force) using the cPanel package:

rpm -e mysql-libs
/scripts/mysqlup –force

After the above intervention, PHP compiled normally, as it was supposed to.
29 days ago by in Linux / Unix , Uncategorized | You can follow any responses to this entry through the RSS feed. You can leave a response, or trackback from your own site.

Leave A Response

* Required