libmysqlclient.so.16: cannot open shared object file: No such file or directory.
See libmysqlclient.so.16: find/-name libmysqlclient.so.16
If it’s installed,
ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.16 /usr/lib/libmysqlclient.so.16
This can solve, but it needs to be ldconfig
If not installed:
Method 1:
download libmysqlclient.so.16, put it in/usr/lib, if 64, put it in/usr/lib64
Method 2:
Example: MySQL-shared-compat package.
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
As a result, this method can be reached 24443; it depends on the issue of human beings like libmysqlclient.so. Without facing a different problem, it’s decided.
Download location:
http://dev.mysql.com/downloads/mysql/5.1.html
下载安装包名:MySQL-shared-compat-5.1.47-1.rhel5.x86_64
Executable command installation: #rpm -ivh MySQL-shared-compat-5.1.47-1.rhel5.x86_64
Similar Posts:
- [How to Solve] Library not loaded: libmysqlclient.18.dylib
- Ubuntu 16.04 troubleshooting MySQL error [How to Solve]
- EnvironmentError: mysql_config not found
- How to Solve Error: Specifies multiple packages
- error while loading shared libraries libaio.so.1
- CentOS7 Install MYSQL8.0.13 error while loading shared libraries: libaio.so.1
- [Solved] Error logging into mysql under ARM64 architecture: mysql: error while loading shared libraries: libncurses.so.5: cannot open share…
- Solution to error reporting in starting MySQL
- [Solved] MYSQL export mysqldump version mismatch upgrade or downgrade your local MySQL client programs
- MySQL Error: the solution of command not found