菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
140
0

解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:

原创
05/13 14:22
阅读数 339642

error while loading shared librar编程客栈ies: libstdc++.sowww.cppcns.com.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 whilJxliuNGTuWe 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 hosthttp://www.cppcns.comfile
libstdcJxliuNGTuW++-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:
本文地址: http://www.cppcns.com/shujuku/mysql/241335.html

发表评论

0/200
140 点赞
0 评论
收藏
为你推荐 换一批