Startup error about libmysqlclient.so.18 after update (Debian 6.0 AMD64)

rvanlooijen

Verified User
Joined
Jun 25, 2013
Messages
6
Hi,

we updated our DA setup a few hours ago, like this:

Code:
cd /usr/local/directadmin
wget -O update.tar.gz 'https://www.directadmin.com/cgi-bin/daupdate?uid=*****&lid=*****'
tar xvzf update.tar.gz
./directadmin p
cd scripts
./update.sh
/etc/init.d/directadmin restart
But now it says:

Code:
/usr/local/directadmin# ./directadmin o
./directadmin: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
I saw this page: http://help.directadmin.com/item.php?id=236 but the file seems ok so I'm not sure what to do (just running ldconfig doesn't fix it), but indeed has been changed by the update:
Code:
/usr/local/mysql/lib# ls -alh
total 122M
drwxr-xr-x  3 mysql mysql 4.0K Jun 25 07:00 .
drwxr-xr-x 12 mysql mysql 4.0K Jun 21  2011 ..
-rw-r--r--  1 mysql mysql  11K Apr 15  2011 libdbug.a
-rw-r--r--  1 mysql mysql 1.1M Apr 15  2011 libheap.a
-rw-r--r--  1 mysql mysql 5.7M Apr 15  2011 libmygcc.a
-rw-r--r--  1 mysql mysql 3.8M Apr 15  2011 libmyisam.a
-rw-r--r--  1 mysql mysql 1.4M Apr 15  2011 libmyisammrg.a
-rw-r--r--  1 mysql mysql 9.3M Apr 15  2011 libmysqlclient.a
-rwxr-xr-x  1 mysql mysql 1.1K Apr 15  2011 libmysqlclient.la
-rw-r--r--  1 mysql mysql 9.3M Apr 15  2011 libmysqlclient_r.a
-rwxr-xr-x  1 mysql mysql 1.2K Apr 15  2011 libmysqlclient_r.la
lrwxrwxrwx  1 mysql mysql   26 Jun 21  2011 libmysqlclient_r.so -> libmysqlclient_r.so.16.0.0
lrwxrwxrwx  1 mysql mysql   26 Jun 21  2011 libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0
-rwxr-xr-x  1 mysql mysql 5.1M Apr 15  2011 libmysqlclient_r.so.16.0.0
lrwxrwxrwx  1 mysql mysql   24 Jun 21  2011 libmysqlclient.so -> libmysqlclient.so.16.0.0
lrwxrwxrwx  1 mysql mysql   24 Jun 21  2011 libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
-rwxr-xr-x  1 mysql mysql 5.1M Apr 15  2011 libmysqlclient.so.16.0.0
lrwxrwxrwx  1 root  root    20 Jun 25 07:00 libmysqlclient.so.18 -> libmysqlclient.so.16
-rw-r--r--  1 mysql mysql  77M Apr 15  2011 libmysqld.a
-rw-r--r--  1 mysql mysql 2.3M Apr 15  2011 libmystrings.a
-rw-r--r--  1 mysql mysql 1.9M Apr 15  2011 libmysys.a
-rw-r--r--  1 mysql mysql  82K Apr 15  2011 libvio.a
-rw-r--r--  1 mysql mysql 324K Apr 15  2011 libz.a
-rwxr-xr-x  1 mysql mysql  882 Apr 15  2011 libz.la
drwxr-xr-x  2 mysql mysql 4.0K Apr 15  2011 plugin
DA refuses to start, luckily it's websites still work. The only custom item on this server is Installatron (recently installed).
 

rvanlooijen

Verified User
Joined
Jun 25, 2013
Messages
6
Small update, running:
Code:
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib/libmysqlclient.so.18
Changes the error message to:
Code:
Starting DirectAdmin: /usr/local/directadmin/directadmin: /usr/lib/libmysqlclient.so.18: version `libmysqlclient_18' not found (required by /usr/local/directadmin/directadmin)
That seems about right, since the .18 is a symlink to .16, I think DA is requiring or packing the wrong version.
 
Top