啟動(dòng)MongoDB時(shí),提示:
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[root@SnsWeb ~]# /usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/data --logpath /usr/local/mongodb/logs/mongodb.log --fork /usr/local/mongodb/bin/mongod: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory [root@SnsWeb ~]#
報(bào)錯(cuò)原因:缺少libstdc++.so.6運(yùn)行庫
解決方案:安裝libstdc++.so.6運(yùn)行庫
1、執(zhí)行命令
yum whatprovides libstdc++.so.6
然后會(huì)提示哪個(gè)安裝包有這個(gè)庫文件,如下:
[root@SnsWeb ~]# yum whatprovides libstdc++.so.6 Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile libstdc++-4.4.7-11.el6.i686 : GNU Standard C++ Library Repo : base Matched from: Other : libstdc++.so.6
2、然后執(zhí)行
yum -y install libstdc++-4.4.7-11.el6.i686
非常簡單,工作中系統(tǒng)或軟件會(huì)出現(xiàn)各種問題,不要急著去問百度,試著去閱讀一下錯(cuò)誤提示,自己根據(jù)錯(cuò)誤提示來解決相關(guān)問題,如果是英文的還能提高你的英文閱讀水平
標(biāo)簽:黔南 賀州 佛山 宿遷 馬鞍山 黃山 蘭州 南充
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《解決啟動(dòng)MongoDB錯(cuò)誤:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:》,本文關(guān)鍵詞 解決,啟動(dòng),MongoDB,錯(cuò)誤,error,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。