MongoDB installation error: "mongod: error while loading shared libraries: lib ++. So.1 ..."

I use this tutorial to install mongodb on my 64 bit Ubuntu OS:

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/

After installation is complete, I enter:

mongo 

Since then, an error message appears:

 mongod: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory 

Do you have an idea to solve this problem? Here is my system info:

 OS: Ubuntu 14.04 LTS. OS Type: 64 bit. MongoDB version: mongodb-linux-x86_64-ubuntu1410-clang-3.0.6. 
+6
source share
4 answers

I am using Ubuntu 14.04.3 64-bit (mongodb-linux-x86_64-ubuntu1410-clang-3.2.4), I was able to install libC ++. so.1 related packages using the following commands:

 sudo apt-get update sudo apt-get install libc++1 

Note : My Ubuntu VM using an enterprise proxy, initially "sudo apt-get install lib ++ 1" gave an error. Since I have installed the Synaptic Package Manager, I tried Synaptic to install libC ++ 1 and it was successful. MongoDB started to work and worked. To check if the specified command works, I did

 sudo apt-get remove libc++1 sudo apt-get install libc++1 

and the teams worked. If you need to use Synaptic, here is a screenshot ubuntu-install-libC ++ 1

+9
source

OS: Ubuntu 16.04

MongoDB: 3.2.6

It is required to execute below commands to work with mongod

Sudo apt-get update

sudo apt-get install libC ++ 1

+1
source

In my case (Ubuntu 14.04.3 LTS, mongodb-linux-x86_64-ubuntu1410-clang-3.2.1) after installing this package libC ++ 1 (LLVM C ++ Standard library) the problem was solved.

0
source

Do it:

sudo apt-get install libc++

-3
source

All Articles