1. 程式人生 > >解決:CentOS下的 error while loading shared libraries: libmysqlclient.so.16: cannot open shared object fi

解決:CentOS下的 error while loading shared libraries: libmysqlclient.so.16: cannot open shared object fi

你看到的這個文章來自於http://www.cnblogs.com/ayanmw

進入別人的centos,輸入命令 mysql mysqladm都會報錯,缺少這個共享庫 libmysqlclient.so.16 。

查詢下,一般都是ldconfig 沒有找到共享庫的位置,或者 軟連結的問題,但是 都是不治本的解決方案。

查詢 此檔案 相關的檔案:

updatedb

locate libmysqlclient.so

出現 在/usr/lib64/mysql/libmysqlclient.so

但是 

ll /usr/lib64/mysql/libmysqlclient.so
lrwxrwxrwx. 1 root root 24 11月 20 17:02 /usr/lib64/mysql/libmysqlclient.so -> libmysqlclient.so.16.0.0

這個是一個軟連結而已,原本的libmysqlclient.so.16.0.0卻找不到。

檢視當前系統安裝的mysql的軟體

rpm -qa|grep mysql
mysql-server-5.1.69-1.el6_4.x86_64
mysql-libs-5.1.69-1.el6_4.x86_64
mysql-devel-5.1.69-1.el6_4.x86_64
mysql-5.1.69-1.el6_4.x86_64

yum search mysql

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 yum search mysql Loaded plugins: fastestmirror, security Determining fastest mirrors base: mirrors.yun-idc.com * extras: mirror01.idc.hinet.net * updates: mirrors.yun-idc.com =================================== N/S Matched: mysql ===================================
MySQL-python.x86_64 : An interface to MySQL apr-util-mysql.x86_64 : APR utility library MySQL DBD driver bacula-director-mysql.x86_64 : Bacula Director with MySQL database support bacula-storage-mysql.x86_64 : MySQL Bacula storage daemon files dovecot-mysql.x86_64 : MySQL back end for dovecot freeradius-mysql.x86_64 : MySQL support for freeradius libdbi-dbd-mysql.x86_64 : MySQL plugin for libdbi mod_auth_mysql.x86_64 : Basic authentication for the Apache web server using a MySQL : database<span style="color: #ff0000;"> mysql.x86_64 : MySQL client programs and shared libraries</span> mysql-bench.x86_64 : MySQL benchmark scripts and data mysql-connector-java.noarch : Official JDBC driver for MySQL mysql-connector-odbc.x86_64 : ODBC driver for MySQL<span style="color: #ff0000;">

相關推薦

解決CentOSerror while loading shared libraries: libmysqlclient.so.16: cannot open shared object fi

你看到的這個文章來自於http://www.cnblogs.com/ayanmw 進入別人的centos,輸入命令 mysql mysqladm都會報錯,缺少這個共享庫 libmysqlclient.so.16 。 查詢下,一般都是ldconfig 沒有找到共享庫的位置,或者 軟連結的問題,但是 都是

解決CentOSerror while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or dir

進入別人的centos,輸入命令 mysql mysqladm都會報錯,缺少這個共享庫 libmysqlclient.so.16 。 查詢下,一般都是ldconfig 沒有找到共享庫的位置,或者 軟連結的問題,但是 都是不治本的解決方案。 查詢 此檔案 相關的檔案: updatedb loca

error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file

error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file 2009-09-10 15:22 1.找到libmysqlclient.so.16所在的

error while loading shared libraries: libmysqlclient.so.16: cannot open

問題解決辦法: locate libmysqlclient.so.16 如我的mysql安裝在/usr/local/mysql下,則結果為 /usr/local/mysql/lib/mysql/libmysqlclient.so.16 vi /etc/ld.so.con

解決軟件啟動報error while loading shared libraries: libgd.so.2: cannot open shared object錯誤

data dso htm inux libpcre 通過 libc.so.6 code 相關 解決軟件啟動報error while loading shared libraries: libgd.so.2: cannot open shared object錯誤 今天安

解決error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file

一、問題 執行hello程式時,用到了自己編寫的動態庫,在目錄/usr/local/lib目錄下,執行時出現 error while loading shared libraries: libhello.so.1: cannot open shared object file: No s

mysq安裝錯誤error while loading shared libraries: libaio.so.1: cannot open shared object file: No such

centos6安裝mysq5.6 錯誤資訊:Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object

解決 error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or

編譯android7.0出現問題: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory 解決方法: sudo apt-ge

錯誤解決error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file

前提:ubuntu-debug機器上向SVN提交了pdu-IVT,想在別的普通機器上驗證直接make能否成功,編譯出的使用者程式能否執行。 工作PC機上裝有VMware,裡面的ubuntu版本跟ubuntu-debug機器上相同,都是ubuntu 11.10版本。 VMw

error while loading shared libraries: libssl.so.6: cannot open shared object file

ldd yum check_tcp libssl.so.6 openssl098e-0.9.8e-20 [root@ ~]# /usr/local/nagios/libexec/check_tcp -H 127.0.0.1 80/usr/local/nagios/libexec/check

arm-none-linux-gnueabi/4.4.3/cc1: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

鬱悶了,安裝好了arm-linux-gcc的4.4.3版本,就是能能執行!!! 而且,在執行arm-linux-gcc -v的時候一切正常,醉了! 顯示說: /opt/Friendlyarm/arm-linux-gcc-4.4.3/bin/../libexec/gcc/arm-none-linux-

執行Visual Studio code,遇到error while loading shared libraries: libXss.so.1: cannot open shared object

執行Visual Studio Code,遇到錯誤如下: [[email protected] VSCode-linux-x64]# ./code  ./code: error while loading shared libraries: libXss.so.1

error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

今天重新配置環境的時, 在啟動nginx時出現這樣一個錯誤   解決方法   64位系統:  ln -s /usr/local/lib/libpcre.so.1 /lib64   32位系統:  ln -s /usr/local/lib/libpcre.so.1 /l

mysql安裝報錯error while loading shared libraries: libaio.so.1: cannot open shared object file: No such

使用ubantu安裝mysql時,出現報錯 [email protected]:/home/soft/mysql-5.6.41-linux-glibc2.12-x86_64# ./scripts/mysql_install_db --user=mysql --da

error while loading shared libraries: libcudnn.so.7: cannot open shared object file: No such file or

1、錯誤:libcudnn.so.7 .build_release/tools/caffe .build_release/tools/caffe: error while loading shared libraries: libcudnn.so.7: cannot open shared ob

修改mysql登陸時error while loading shared libraries: libncurses.so.5: cannot open shared object file

執行命令:mysql -u root -p 錯誤:error while loading shared libraries: libncurses.so.5: cannot open shared object file 分析:缺少 libncurses.so.5 解決方

error while loading shared libraries: libnuma.so.1: cannot open shared object file

在初始化mysql5.7的時候,報以下錯誤 error while loading shared libraries: libnuma.so.1: cannot open shared objec

error while loading shared libraries: libiconv.so.2: cannot open shared object file

問題分析: 應用執行時找不到需要的動態連結庫libiconv.so.2。一般是檔案不存在或者存在但是找不到兩種情況。 解決方案: 這時首先確認自己的系統中是否存在這個動態連結庫。 sudo find

Error loading MySQLdb module: libmysqlclient.so.18: cannot open shared object file: No such file or directory

在hue上配置Mysql的時候,出現的錯誤:  發生伺服器錯誤:  Error loading MySQLdb module: libmysqlclient.so.18: cannot open shared&n

Linux(centos)安裝SQLserver 的過程(遇到問題並解決error while loading shared libraries: libc++.so.1 cannot open

網上的教程比較多,但是安裝過程中還是遇到了一些難以描述的問題,經過奮鬥,終於解決了,如果有還沒解決的小夥伴,可以看看有沒有遇到類似的情況 非常建議按照官方文件來編寫,出現錯誤再找錯 安裝中遇到的問題: (2)error while loading sha