Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mongod: error while loading shared libraries: libstdc++.so.6

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Mongod: error while loading shared libraries: libstdc++.so.6

Environment description:

OS:Oracle Linux Server release 6.3

DB:MongoDB 1.8.2

Question:

Startup failed after mongod installation.

[mongo@cjcos01 ~] $mongod-config / usr/local/mongodb/conf/mongodb.confmongod: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Check which packages are missing:

[root@cjcos01 os] # yum whatprovides libstdc++.so.6

Loaded plugins: refresh-packagekit, security

Libstdc++-4.4.6-4.el6.i686: GNU Standard C++ Library

Repo: Oralin6u3

Matched from:

Other: libstdc++.so.6

Install libstdc++-4.4.6-4.el6.i686:

[root@cjcos01 os] # yum install libstdc++-4.4.6-4.el6.i686

Start mongod again and start it normally:

[root@cjcos01 os] # su-mongo

[mongo@cjcos01 ~] $mongod-config / usr/local/mongodb/conf/mongodb.conf

[mongo@cjcos01 ~] $forked process: 15819

All output going to: / usr/local/mongodb/log/mongodb.log

Log in to mongo:

[root@cjcos01 os] # su-mongo

[mongo@cjcos01 ~] $mongo

MongoDB shell version: 1.8.2connecting to: test > show dbs;admin (empty) cjc0.0625GBlocal (empty)

Welcome to follow my Wechat official account "IT Little Chen" and learn and grow together!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report