title: LoadError - cannot open shared object file - file is present, but it says no such file
body: <p>Ruby comes up with <code>LoadErrors</code> I do not understand. It complains about opening a shared object file, while it's present.</p>
  
  <pre><code>irb(main):001:0&gt; require 'openssl'
  LoadError: libssl.so.1.0.0: cannot open shared object file: No such file or directory - /usr/lib/ruby/2.3.0/x86_64-linux/openssl.so
      from /usr/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
      from /usr/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
      from /usr/lib/ruby/2.3.0/openssl.rb:13:in `&lt;top (required)&gt;'
      from /usr/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
      from /usr/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  </code></pre>
  
  <p>but <code>ls /usr/lib/ruby/2.3.0/x86_64-linux/openssl.so</code><br>
  returns the file <code>/usr/lib/ruby/2.3.0/x86_64-linux/openssl.so</code></p>
  
  <p>Load Path:</p>
  
  <pre><code>irb(main):001:0&gt; pp $LOAD_PATH
  ["/usr/lib/ruby/site_ruby/2.3.0",
   "/usr/lib/ruby/site_ruby/2.3.0/x86_64-linux",
   "/usr/lib/ruby/site_ruby",
   "/usr/lib/ruby/vendor_ruby/2.3.0",
   "/usr/lib/ruby/vendor_ruby/2.3.0/x86_64-linux",
   "/usr/lib/ruby/vendor_ruby",
   "/usr/lib/ruby/2.3.0",
   "/usr/lib/ruby/2.3.0/x86_64-linux"]
  </code></pre>
  
  <p>Another example, with the <code>rails</code> gem installed, generating a new project fails with following <code>LoadError</code>.</p>
  
  <pre><code>/usr/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in `require': libcrypto.so.1.0.0: cannot open shared object file: No such file or directory - /usr/lib/ruby/2.3.0/x86_64-linux/digest/md5.so (LoadError)
  </code></pre>
  
  <p>And again, doing <code>ls /usr/lib/ruby/2.3.0/x86_64-linux/digest/md5.so</code> shows the presence of the file.</p>
  
  <p>my ruby version is <code>ruby 2.3.1p112</code>.
  In case you wonder, <code>uname -m</code> returns <code>x86_64</code>.</p>
  
  <p>I must miss something obvious, I guess. Any hints popping up are much appreciated!</p>