Problem:
Running a test with EmbedMongo in Linux results in the following *error while loading shared libraries: libcrypto.so.10: cannot open shared object file*. The solution is simple!
Solution:
The full error message while running mongoimport is:
[mongod error] /tmp/file mongoimport: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory
Adding the following does nothing, because the libs are still incompatible:
cd /lib/x86_64-linux-gnu sudo ln -s libssl.so.1.0.0 libssl.so.10 sudo ln -s libcrypto.so.1.0.0 libcrypto.so.10
The correct solution is to install correct version of *MongoDB from the MongoDB Repository as described here: Install MongoDB on Ubuntu
Simple, isn’t it? :-)