Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: /usr/sbin/postconf: error while loading shared libraries: libmysqlclient.so.16  (Read 6105 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
Last week I had an issue,  I am not able to log in Plesk Panel. The following error cracked my head:

Code: [Select]
ERROR: PleskUtilException

Up Level
Fatal error: plesk::Exc<&(plesk::ExecCmd::Failed(bool))>(Execution of /usr/sbin/postconf -d -h mail_version failed with return code 127.
Stderr is
/usr/sbin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory)

'/usr/lib64/libmysqlclient.so.16' exists, however 'ldd' command indicates that dynamic library is not found:

Code: [Select]
[root@ ~]# ldd /usr/sbin/postconf
        linux-vdso.so.1 =>  (0x00007fff6cdfe000)
        libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007fdbb1e9d000)
        libpcre.so.0 => /lib64/libpcre.so.0 (0x00007fdbb1c71000)
        libmysqlclient.so.16 => not found

Yeah its because Dynamic library is being searched in the '/usr/lib64' or '/usr/lib' folders, but subfolders are ignored.

And here is the fix:

Create the symbolic link in the '/usr/lib64' folder and reconfigure the libraries links:

Code: [Select]
[root@ ~]# ln -s  /usr/lib64/mysql/libmysqlclient.so.16.0.0 /usr/lib64/libmysqlclient.so.16

[root@ ~]# ldconfig