脚本宝典收集整理的这篇文章主要介绍了解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
启动MongoDB时,提示:
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 ~]#
报错原因:缺少libstdc++.so.6运行库
解决方案:安装libstdc++.so.6运行库
1、执行命令
然后会提示哪个安装包有这个库文件,如下:
[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、然后执行
yum -y install libstdc++-4.4.7-11.el6.i686
非常简单,工作中系统或软件会出现各种问题,不要急着去问百度,试着去阅读一下错误提示,自己根据错误提示来解决相关问题,如果是英文的还能提高你的英文阅读水平
以上是脚本宝典为你收集整理的解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:全部内容,希望文章能够帮你解决解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。