启动MongoDB时,提示:error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No

启动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 ~]# 

报错提示缺少共享库!

解决方案:

1、执行命令

yum whatprovides libstdc++.so.6

然后会提示哪个安装包有这个库文件,如下:

[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

搞定!

原文链接: https://www.cnblogs.com/52php/p/5677671.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    启动MongoDB时,提示:error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/237189

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月13日 下午5:18
下一篇 2023年2月13日 下午5:19

相关推荐