title: RMagic gem require error. RMagick2.so cannot be opened
body: <p><strong>When I try the following in my controller,</strong></p>
  
  <pre><code>require 'RMagick'
  </code></pre>
  
  <p><strong>and running</strong> </p>
  
  <pre><code>RAILS_ENV=production rake gems:install
  </code></pre>
  
  <p><strong>I am getting the following error.</strong> </p>
  
  <pre><code>rake aborted!
  libMagickCore.so.2: cannot open shared object file: No such file or directory - /usr/lib64/ruby/gems/1.8/gems/rmagick-2.10.0/lib/RMagick2.so
  </code></pre>
  
  <p>When I checked, the file RMagick2.so is present in the directory. </p>
  
  <p>ImageMagick is also installed.</p>
  
  <pre><code>identify --version
  </code></pre>
  
  <p>gives</p>
  
  <pre><code>Version: ImageMagick 6.4.8-10 2015-05-23 Q16 OpenMP http://www.imagemagick.org
  Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
  </code></pre>
  
  <p>Any solution to this issue?</p>
  
  <p>Before, when I installed Imagemagick 6.5 version, it was saying RMagick is configured with ImageMagick 6.4.8. Can we change the configured version of ImageMagick in RMagick gem? </p>
  
  <p>I have tried uninstalling and reinstalling ImageMagick and RMagick so completely at a loss. </p>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>