Reputation: 674
When I try the following in my controller,
require 'RMagick'
and running
RAILS_ENV=production rake gems:install
I am getting the following error.
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
When I checked, the file RMagick2.so is present in the directory.
ImageMagick is also installed.
identify --version
gives
Version: ImageMagick 6.4.8-10 2015-05-23 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Any solution to this issue?
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?
I have tried uninstalling and reinstalling ImageMagick and RMagick so completely at a loss.
Any ideas?
Thanks!
Upvotes: 4
Views: 1472
Reputation: 1879
The issue you are facing is with the path -
convert is located at
/usr/local/bin/convert
It should be located at
/usr/bin/convert
Remove the one under bin and reinstall it , and the issue will be solved .
Upvotes: 1