How to fix: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found

Solution 1:

Link statically to libstdc++ with -static-libstdc++ gcc option.

Solution 2:

I fixed this issue by installing: sudo apt-get install libstdc++6

In my case, I ran into this issue after installing MongoDB 3.0.1

mongo: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by mongo)