Error while loading shared Libraries:libmysqlclient.so.18:cannot open shared object File:no such

Source: Internet
Author: User

Tag: Error message shared libraries libmysqlclient.so shared object file

Start Zabbix_server appear title error, almost did not faint dead past, has never appeared, this kind of mistake actually has encountered countless times, but each time did not have a good record summary of some, resulting in each encounter need to run silly to the online Baidu, can be resolved. Today specifically for this small problem to write an Error record blog, in the future to see the party can quickly.

Execute command

cd/usr/local/mysql/lib/

ll libmysqlclient.so

Discover Libmysqlclient.so-libmysqlclient.so.18

So Ln-s/usr/local/mysql/lib/libmysqlclient.so.18/usr/lib/

Re-executing zabbix_server to resolve.


And the way online is the same:

Enter the/usr/local/mysql/lib/directory to view, confirm the libmysqlclient.so.16.0.0 file, so you need to create a soft link in the/usr/lib directory to point to the libmysqlclient.so.16
To create a soft link under/usr/lib/:

LN-s/usr/Local/MySQL/Lib/libmysqlclient. So. -   /usr/Lib/


Someone on the Web expands:

Run the program under Linux, found the error while loading shared libraries such errors, a time do not know the solution, search on the Internet, finally solved:

./tests:error while loading shared libraries:xxx.so.0:cannot open Shared object file:no such file or directory
This kind of error indicates that the system does not know which directory xxx.so is placed in, this time it is necessary toadd xxx.so directory in the/etc/ld.so.conf.

In general, there are a lot of so will be stored in the directory under the/usr/local/lib, go to this directory to find, sure enough to find that they need. so file.

So, add/usr/local/lib this line in/etc/ld.so.conf, save, then run:/sbin/ldconfig–v update the configuration.



Error while loading shared Libraries:libmysqlclient.so.18:cannot open shared object File:no such

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.