最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
时间:2022-06-29 09:14:51 编辑:袖梨 来源:一聚教程网
启动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、执行命令
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
相关文章
- Tether计划推出华尔街专属稳定币 强化美国市场布局 08-02
- 《满庭芳宋上繁华》存档位置介绍 08-02
- 《地下城堡4》零氪墓穴145层攻略 08-02
- 2025年8月值得关注的3个潜力小众代币 08-02
- 《地下城堡4》阴魂大厅Boss魔君打法攻略 08-02
- kava币怎么充值 08-02