title: mongod: error while loading shared libraries: libssl.so.10 libcrypto.so.10
body: <p><strong>Problem</strong></p>
  
  <p>I downloaded the <code>mongodb 3.0.7</code> tar files. Then I added the bin directory to my path:</p>
  
  <pre><code>export PATH=&lt;mongodb-install-directory&gt;/bin:$PATH
  </code></pre>
  
  <p>Then when I run the mongodb server: </p>
  
  <pre><code>mongod --fork --logpath "/home/me/mongolog" --dbpath "/home/me/data"
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>mongod: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p><strong>What I did</strong></p>
  
  <p>I tried <a href="https://askubuntu.com/questions/339364/libssl-so-10-cannot-open-shared-object-file-no-such-file-or-directory">this solution</a>. In brief I updated my openssl:</p>
  
  <pre><code>sudo apt-get update
  sudo apt-get install libssl1.0.0 libssl-dev
  </code></pre>
  
  <p>and then:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>but it says that it cannot find <code>libssl.so.10</code> and <code>libcrypto.so.10</code>. I don't know what to do! </p>