解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
程序员文章站
2022-05-21 16:45:59
启动mongodb时,提示:
error while loading shared libraries: libstdc++.so.6: cannot open shar...
启动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
非常简单,工作中系统或软件会出现各种问题,不要急着去问百度,试着去阅读一下错误提示,自己根据错误提示来解决相关问题,如果是英文的还能提高你的英文阅读水平
上一篇: 多饮酒可以御寒吗 大寒节气防寒九误区
下一篇: 五行人立春养生要点 木型人健脾温肾
推荐阅读
-
解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
-
解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
-
error while loading shared libraries: xxx: cannot open shared object file: No such file or directory
-
gmx-MMPBSA — error while loading shared libraries: libgfortran.so.3: cannot open shared object file
-
mysql初始化/usr/local/mysql/bin/mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
-
错误解决:error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory,errorwhileloading_PHP教程
-
错误解决:error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory,errorwhileloading_PHP教程
-
php: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No
-
Error While Loading Shared Libraries, Cannot Open Shared Object File
-
php: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No