Centos7 問題:libsasl2.so.2: cannot open shared object file: No such file or directory

在運行Qpid總線時,遇到如下問題:

[sumscope@localhost qpid]$ ./qpidd.sh 
/opt/sumscope/qpid/bin/qpidd: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory
[sumscope@localhost qpid]$

顯示是找不到libsasl2.so.2 這個庫。
其實在Centos 7中是有這個庫的,只不過不叫這個名字,進入到/usr/lib64/目錄下查看

[sumscope@localhost bin]$ cd /usr/lib64
[sumscope@localhost lib64]$ ls libsasl2.so.* -l
lrwxrwxrwx. 1 root root     17 Oct 17  2016 libsasl2.so.3 -> libsasl2.so.3.0.0
-rwxr-xr-x. 1 root root 121296 Jun 10  2014 libsasl2.so.3.0.0
[sumscope@localhost lib64]$ 

發現有一個庫libsasl2.so.3,那麼我們只要使用一個軟連接,連接到libsasl2.so.2即可

[root@localhost lib64]# ln -s libsasl2.so.3 libsasl2.so.2
[root@localhost lib64]# ls libsasl2.so.* -l
lrwxrwxrwx  1 root root     13 Nov 19 18:00 libsasl2.so.2 -> libsasl2.so.3
lrwxrwxrwx. 1 root root     17 Oct 17  2016 libsasl2.so.3 -> libsasl2.so.3.0.0
-rwxr-xr-x. 1 root root 121296 Jun 10  2014 libsasl2.so.3.0.0
[root@localhost lib64]# 

再次啓動就成功了!

發佈了25 篇原創文章 · 獲贊 3 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章