[CentOS] CentOS 64 bit php 5.2 huge problem

Sun Feb 13 00:50:48 UTC 2011
Lamar Owen <lowen at pari.edu>

On Feb 12, 2011, at 7:28 PM, Peter Ivanov wrote:

> PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ 
> mysql.so' - libmysqlclient.so.15: cannot open shared object file: No  
> such file or directory in Unknown on line 0

Run
ldd /usr/lib64/php/modules/mysql.so
and list the output.

It should look something like:

[root at localhost ~]# ldd /usr/lib64/php/modules/mysql.so
	libmysqlclient.so.15 => /usr/lib64/mysql/libmysqlclient.so.15  
(0x00002b180136f000)
	libc.so.6 => /lib64/libc.so.6 (0x00002b18016e0000)
	libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002b1801a37000)
	libnsl.so.1 => /lib64/libnsl.so.1 (0x00002b1801c70000)
	libm.so.6 => /lib64/libm.so.6 (0x00002b1801e88000)
	libssl.so.6 => /lib64/libssl.so.6 (0x00002b180210b000)
	libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00002b1802358000)
	libz.so.1 => /usr/lib64/libz.so.1 (0x00002b18026a9000)
	/lib64/ld-linux-x86-64.so.2 (0x0000003bd6a00000)
	libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2  
(0x00002b18028bd000)
	libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00002b1802aec000)
	libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00002b1802d81000)
	libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00002b1802f83000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00002b18031a9000)
	libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0  
(0x00002b18033ad000)
	libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00002b18035b5000)
	libresolv.so.2 => /lib64/libresolv.so.2 (0x00002b18037b8000)
	libselinux.so.1 => /lib64/libselinux.so.1 (0x00002b18039cd000)
	libsepol.so.1 => /lib64/libsepol.so.1 (0x00002b1803be6000)
[root at localhost ~]#

If it can't find libmysqlclient, you can work around the deeper issue  
by running
ln -s /usr/lib64/mysql/libmysqlclient.so.15 /usr/lib64/ 
libmysqlclient.so.15

and see if that 'fixes' it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1813 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20110212/f4a7993a/attachment-0005.p7s>