title: libruby.so.1.8: cannot open shared object file: No such file or directory
body: <p>I am getting the below error while starting server of my project. I am trying to resolve since yesterday but was not able to solve it. somebody pls help me.</p>
  
  <pre><code>=&gt; Booting WEBrick
  =&gt; Rails 2.3.14 application starting on http://0.0.0.0:3001
  Encountered error loading /home/success/prj/myprj/vendor/gems/mysql2-0.2.18/precompiled/i686-linux/1.8.7/mysql2/mysql2.so: libruby.so.1.8: cannot open shared object file: No such file or directory - /home/success/prj/myprj/vendor/gems/mysql2-0.2.18/precompiled/i686-linux/1.8.7/mysql2/mysql2.so
  Encountered error loading /home/success/prj/myprj/vendor/gems/mysql2-0.2.18/precompiled/i686-linux/1.8.7/mysql2/mysql2.so: libruby.so.1.8: cannot open shared object file: No such file or directory - /home/success/prj/myprj/vendor/gems/mysql2-0.2.18/precompiled/i686-linux/1.8.7/mysql2/mysql2.so
  /home/success/prj/eschool/vendor/gems/mysql2-0.2.18/lib/mysql2/mysql2.rb:13: Failed to load mysql2 binary for your platform (i686-linux/1.8.7) Run ./compile_native_library.rb (RuntimeError)
          from /home/success/prj/myprj/vendor/gems/rubygems-update-1.7.2/lib/rubygems/custom_require.rb:36:in `gem_original_require'
          from /home/success/prj/myprj/vendor/gems/rubygems-update-1.7.2/lib/rubygems/custom_require.rb:36:in `require'
          from /home/success/prj/myprj/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
          from /home/success/prj/myprj/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
          from /home/success/prj/myprj/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
          from /home/success/prj/myprj/vendor/gems/mysql2-0.2.18/lib/mysql2.rb:9
  </code></pre>
  
  <p><strong>UPDATE:</strong></p>
  
  <pre><code>success@success-Vostro-1400:/usr/lib$ ls -l libruby*
  lrwxrwxrwx 1 root root      19 2012-02-22 07:07 libruby1.8.so -&gt; libruby1.8.so.1.8.7
  lrwxrwxrwx 1 root root      19 2012-02-22 07:07 libruby1.8.so.1.8 -&gt; libruby1.8.so.1.8.7
  -rw-r--r-- 1 root root  956360 2012-02-22 07:22 libruby1.8.so.1.8.7
  -rw-r--r-- 1 root root 1436438 2012-02-22 07:22 libruby1.8-static.a
  </code></pre>