Add to Favourites Add to Favourites    Print this Article Print this Article

error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file

If you're running a DA server, recently updated mysql to version 5.1, you'll still need your old libmysqlclient.so files from mysql 5.0.

This would be the error you're seeing:

[root@server directadmin]# service directadmin restart
Stopping DirectAdmin:                                      [FAILED]
Starting DirectAdmin: /usr/local/directadmin/directadmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory                   [FAILED]

To resolve the issue, simply grab the old libmysqlclient.so.15 file from our server.

Example, for CentOS 5 - 64-bit, run:

wget -O /usr/lib64/libmysqlclient.so.15 http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15
chmod 755 /usr/lib64/libmysqlclient.so.15
ldconfig



On non-64-bit systems, the file would go into /usr/lib/libmysqlclient.so.15



Similar reported issue on Debian 5 64-bit, type:

wget -O /usr/local/mysql/lib/libmysqlclient.so.16 http://files.directadmin.com/services/debian_5.0_64/libmysqlclient.so.16
chmod 755 /usr/local/mysql/lib/libmysqlclient.so.16
ldconfig





Debian 6, if you update to 5.5.11 from 5.5.9, they've changed the libmysqlclient.so.16 to libmysqlclient.so.18, so it just needs a relink.  If you run this

cd /usr/local/directadmin
./directadmin o

and get this error

./directadmin: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory

then run this:

cd /usr/local/mysql/lib
ln -s libmysqlclient.so.18 libmysqlclient.so.16
ldconfig

Some reported cases of the link to 18 not working, so the 16 version has been made available.  Type:

cd /usr/local/mysql/lib
rm -f libmysqlclient.so.16    #in case you've already tried the above linking method
wget http://files.directadmin.com/services/debian_6.0/libmysqlclient.so.16
chmod 755 libmysqlclient.so.16
ldconfig



Was this answer helpful?

Also Read