Libmysqlclient. so.16: cannot open shared object file: no such file or directory

Source: Internet
Author: User

Check whether libmysqlclient. so.16: Find/-name libmysqlclient. so.16 is installed.

If it is installed

Ln
-s /usr/
local/mysql/lib/mysql/libmysqlclient.so.16 /usr/lib/libmysqlclient.so.16

Note:/usr/local/mysql/lib/mysql/Is the path of libmysqlclient. so.16. Create a soft link under/usr/lib.

^_^ Tried to use it ~

 

 

1. Method 1:

Download libmysqlclient. so.16 and put it under/usr/lib. If it is 64-bit, put it under/usr/lib64

2. Method 2:

Use: mysql-shared-compat RPM package.

Run the command: # rpm-QP -- provides MySQL-shared-compat-5.1.47-1.rhel5.x86_64.rpm

Mysql-shared
Libmysqlclient. so.12 () (64bit)
Libmysqlclient. so.14 () (64bit)
Libmysqlclient. so.14 (libmysqlclient_14) (64bit)
Libmysqlclient. so.15 () (64bit)
Libmysqlclient. so.15 (libmysqlclient_15) (64bit)
Libmysqlclient. so.16 () (64bit)
Libmysqlclient. so.16 (libmysqlclient_16) (64bit)
Libmysqlclient_r.so.12 () (64bit)
Libmysqlclient_r.so.14 () (64bit)
Libmysqlclient_r.so.14 (libmysqlclient_14) (64bit)
Libmysqlclient_r.so.15 () (64bit)
Libmysqlclient_r.so.15 (libmysqlclient_15) (64bit)
Libmysqlclient_r.so.16 () (64bit)
Libmysqlclient_r.so.16 (libmysqlclient_16) (64bit)
Mysql-shared-compat = 5.1.47-1. rhel5

From the execution result, this method can completely solve problems similar to libmysqlclient. So. Solve one problem without incompatibility issues.

: Http://dev.mysql.com/downloads/mysql/5.1.html

Download installation package name: MySQL-shared-compat-5.1.47-1.rhel5.x86_64

Execute the command to install: # rpm-IVH MySQL-shared-compat-5.1.47-1.rhel5.x86_64

 

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.