I'm trying to set up Mongodb on my vps but when trying to start it:
service mongod start
It returns this error:
Starting mongod: /usr/bin/mongod: error while loading shared libraries:
libstdc++.so.6: cannot open shared object file: No such file or directory
[FAILED]
From what I read Mongodb runs on c++, so I've installed:
Installed:
gcc-c++.x86_64 0:4.4.6-4.el6
Dependency Installed:
libstdc++-devel.x86_64 0:4.4.6-4.el6
But I still get the error.
Maybe it doesn't have permission.
(Running Centos 6.3 64bit)
Ps: I'm an newbie.
Best Answer
You need to install
libstdc++
to satisfy that dependencySo
yum install libstdc++
should do the trick.