Saturday, 29 September 2012

lib mysql client error or php relocation error

"It may appear as wordpress pages of a site are seems to be dislocated.

Sometimes a  blank page or an internal server error seen in browser when access the site may also due to php relocation error. As there are lot of other reasons for showing blank page and internal server error, it can be check as a final check for these errors ".

>> Error shows in apache error log may like this.
# tail -f /usr/local/apache/logs/error_logs

php: symbol zlibVersion , version libmysqlclient_16 not defined in in file libmysqlclient.so.16 with link time reference. Instead php: relocation error: php: symbol zlibVersion the error could be php: relocation error: php: symbol crc32.

This is an example and the issue could happen with any shared library not only with libmysqlclient.so .
Just follow these steps to fix this issue.
 nm /usr/lib64/libmysqlclient.so.16.0.0 | grep zlibVersion

The output is:
00000034c60d64b0 T zlibVersion

Now just remove the current link

 rm -f /usr/lib64/mysql/libmysqlclient.so.16
  and create a new one with the library that contains the symbol

  ln -s /usr/lib64/libmysqlclient.so.16.0.0 /usr/lib64/mysql/libmysqlclient.so.16

 This should resolve the case, and the php: symbol zlibVersion , version libmysqlclient_16 not defined in in file libmysqlclient.so.16 with link time reference error was solved.


No comments:

Post a Comment