精品专区-精品自拍9-精品自拍三级乱伦-精品自拍视频-精品自拍视频曝光-精品自拍小视频

網(wǎng)站建設(shè)資訊

NEWS

網(wǎng)站建設(shè)資訊

MongoDB報(bào)錯(cuò)mongorestore:errorwhileloadingsharedlibraries:libsasl2.so.2

MongoDB使用命令報(bào)錯(cuò)mongorestore: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory

問(wèn)題背景:
在CentOS7.4上部署MongoDB3.20,使用mongorestore恢復(fù)數(shù)據(jù)時(shí)報(bào)錯(cuò)

[root@server6 dump]# mongorestore
mongorestore: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory
[root@server6 dump]# find / -name mongorestore
^C
[root@server6 dump]# 
[root@server6 dump]# 
[root@server6 dump]# vi /etc/profile
[root@server6 dump]# ls /data/mongodb/bin
bsondump  mongo  mongod  mongodump  mongoexport  mongofiles  mongoimport  mongooplog  mongoperf  mongorestore  mongos  mongostat  mongotop
[root@server6 dump]# mongorestore
mongorestore: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory
[root@server6 dump]# /data/mongodb/bin/mongorestore
/data/mongodb/bin/mongorestore: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory
[root@server6 dump]# 
經(jīng)核查,系統(tǒng)中確實(shí)沒(méi)有該庫(kù)文件。
從CentOS6.8系統(tǒng)上下載libsasl2.so.2庫(kù)文件,傳到CentOS7上對(duì)應(yīng)路徑

CentOS6.8上:
[root@test02 ~]# find / -name libsasl*
/usr/lib64/libsasl2.so.2
/usr/lib64/libsasl2.so.2.0.23
/usr/lib64/sasl2/libsasldb.so.2.0.23
/usr/lib64/sasl2/libsasldb.so.2
/usr/lib64/sasl2/libsasldb.so
[root@test02 ~]# ll /usr/lib64/libsasl2.so.2
lrwxrwxrwx. 1 root root 18 Feb 23  2017 /usr/lib64/libsasl2.so.2 -> libsasl2.so.2.0.23
[root@test02 ~]# ll /usr/lib64/libsasl2.so.2.0.23
-rwxr-xr-x. 1 root root 106160 Mar 25  2015 /usr/lib64/libsasl2.so.2.0.23
[root@test02 ~]# ll /usr/lib64/sasl2/libsasldb.so
lrwxrwxrwx. 1 root root 19 Feb 23  2017 /usr/lib64/sasl2/libsasldb.so -> libsasldb.so.2.0.23
[root@test02 ~]# ll /usr/lib64/sasl2/libsasldb.so.2
lrwxrwxrwx. 1 root root 19 Feb 23  2017 /usr/lib64/sasl2/libsasldb.so.2 -> libsasldb.so.2.0.23
[root@test02 ~]# ll /usr/lib64/sasl2/libsasldb.so.2.0.23
-rwxr-xr-x. 1 root root 22784 Mar 25  2015 /usr/lib64/sasl2/libsasldb.so.2.0.23
[root@test02 ~]# sz /usr/lib64/libsasl2.so.2
[root@test02 ~]# 0


[root@test02 ~]# 
[root@test02 ~]# sz /usr/lib64/libsasl2.so.2.0.23
[root@test02 ~]# 0


[root@test02 ~]# ll -h /usr/lib64/libsasl2.so.2.0.23
-rwxr-xr-x. 1 root root 104K Mar 25  2015 /usr/lib64/libsasl2.so.2.0.23
[root@test02 ~]# ll -h /usr/lib64/sasl2/libsasldb.so.2.0.23
-rwxr-xr-x. 1 root root 23K Mar 25  2015 /usr/lib64/sasl2/libsasldb.so.2.0.23
[root@test02 ~]# sz /usr/lib64/sasl2/libsasldb.so.2.0.23
[root@test02 ~]# 0


[root@test02 ~]# 




CentOS7上:
[root@server6 dump]# find / -name libsasl*
……
/usr/lib64/libsasl2.so.3.0.0
/usr/lib64/libsasl2.so.3
/usr/lib64/sasl2/libsasldb.so
/usr/lib64/sasl2/libsasldb.so.3
/usr/lib64/sasl2/libsasldb.so.3.0.0
/usr/lib64/libsaslwrapper.so.1
/usr/lib64/libsaslwrapper.so.1.0.0
[root@server6 dump]# cd /usr/lib64/
[root@server6 lib64]# ll libsasl2.so*
lrwxrwxrwx 1 root root     17 1月   9 17:47 libsasl2.so.3 -> libsasl2.so.3.0.0
-rwxr-xr-x 1 root root 121328 8月   3 2017 libsasl2.so.3.0.0
[root@server6 lib64]# rz
z waiting to receive.**B0100000023be50
[root@server6 lib64]# ll libsasl2.so*
-rw-r--r-- 1 root root 106160 3月  25 2015 libsasl2.so.2.0.23
lrwxrwxrwx 1 root root     17 1月   9 17:47 libsasl2.so.3 -> libsasl2.so.3.0.0
-rwxr-xr-x 1 root root 121328 8月   3 2017 libsasl2.so.3.0.0
[root@server6 lib64]# ln -s libsasl2.so.2 libsasl2.so.2.0.23
ln: 無(wú)法創(chuàng)建符號(hào)鏈接"libsasl2.so.2.0.23": 文件已存在
[root@server6 lib64]# ll libsasl2.so*
-rw-r--r-- 1 root root 106160 3月  25 2015 libsasl2.so.2.0.23
lrwxrwxrwx 1 root root     17 1月   9 17:47 libsasl2.so.3 -> libsasl2.so.3.0.0
-rwxr-xr-x 1 root root 121328 8月   3 2017 libsasl2.so.3.0.0
[root@server6 lib64]# ln -s libsasl2.so.2.0.23 libsasl2.so.2
[root@server6 lib64]# ll libsasl2.so*
lrwxrwxrwx 1 root root     18 3月   5 17:17 libsasl2.so.2 -> libsasl2.so.2.0.23
-rw-r--r-- 1 root root 106160 3月  25 2015 libsasl2.so.2.0.23
lrwxrwxrwx 1 root root     17 1月   9 17:47 libsasl2.so.3 -> libsasl2.so.3.0.0
-rwxr-xr-x 1 root root 121328 8月   3 2017 libsasl2.so.3.0.0
[root@server6 lib64]# chmod a+x libsasl2.so.2.0.23
[root@server6 lib64]# ll libsasl2.so*
lrwxrwxrwx 1 root root     18 3月   5 17:17 libsasl2.so.2 -> libsasl2.so.2.0.23
-rwxr-xr-x 1 root root 106160 3月  25 2015 libsasl2.so.2.0.23
lrwxrwxrwx 1 root root     17 1月   9 17:47 libsasl2.so.3 -> libsasl2.so.3.0.0
-rwxr-xr-x 1 root root 121328 8月   3 2017 libsasl2.so.3.0.0
[root@server6 lib64]# mongorestore
2018-03-05T17:18:19.311+0800 using default 'dump' directory
2018-03-05T17:18:19.312+0800 Failed: can't create ActualPath object from path dump: stat dump: no such file or directory
[root@server6 lib64]# 


參考:運(yùn)行yum時(shí)出現(xiàn)錯(cuò)誤,缺失libsasl2.so.2文件

2014-12-24

運(yùn)行yum時(shí)出現(xiàn)錯(cuò)誤,缺失libsasl2.so.2文件


[root@localhost /]# yum repolist
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:


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


Please install a package which provides this module, or
verify that the module is installed correctly.


It‘s possible that the above module doesn‘t match the
current version of Python, which is:
2.6.6 (r266:84292, Oct 12 2012, 14:23:48)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)]


If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq
缺失libsasl2.so.2文件,重新安裝或者找一個(gè)電腦有此文件的直接復(fù)制過(guò)去即可。


我的解決方法:


[root@localhost ~]# scp /usr/lib64/libsasl2.so.2 root@192.168.1.253:/usr/lib64/
[root@localhost ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id                              repo name                            status
local                                balack                               3,648
repolist: 3,648
[root@localhost ~]#
運(yùn)行yum時(shí)出現(xiàn)錯(cuò)誤,缺失libsasl2.so.2文件


原文地址:http://www.cnblogs.com/xfan1982/p/4182039.html


來(lái)源:http://www.mamicode.com/info-detail-386519.html
當(dāng)前題目:MongoDB報(bào)錯(cuò)mongorestore:errorwhileloadingsharedlibraries:libsasl2.so.2
當(dāng)前URL:http://m.jcarcd.cn/article/gsjdhj.html
主站蜘蛛池模板: 国产免费又 | 日本亚洲欧美风情 | 国产在线精彩视频 | 成人半夜释放羞 | 国产精品之国产精品 | 国产精品专区 | 日韩美女精品一区 | 国产精品区二 | 91精彩在线视频 | 国产在线观看精品 | 午夜一区二区三区 | 欧洲一级欧美一级a | 精品国精品国产自 | 精品国产自产在线 | 国产欧美在线视频免 | 97日韩在线播放 | 精品偷任你爽任你a | 日本午夜免费啪视频 | 成人看的羞 | 欧美日韩日本日日骚 | 国产喷水福利 | 成人一级影院 | 99自拍视频 | 国产91对白 | 女同互添下 | 日韩欧美永久中文 | 日本国产亚洲 | 日本护士喷 | 国产97在线看 | 日韩午夜影视 | 精品一卡二卡三卡四 | 国产精品乱熟女 | 欧洲乱码 | 精品国产污免费 | 国产久免费在线观看 | 成人一区专区在 | 国产一区二区视频 | 日本亚洲精品视频 | 欧美一级毛B片 | 国产有码在线观看 | 乱伦日本影视 |