Welcome Guest | Login

RMagick not loading

I am trying to use RMagick in an app and I get this error when I require RMagick:

LoadError: /opt/ruby-enterprise-1.8.6-20080507/lib/ruby/gems/1.8/gems/rmagick-2.5.2/lib/RMagick2.so: undefined symbol: SketchImage - /opt/ruby-enterprise-1.8.6-20080507/lib/ruby/gems/1.8/gems/rmagick-2.5.2/lib/RMagick2.so

I am using Paperclip for uploads, and it works, including ImageMagick, but when I try to use RMagick to read or modify an image I get the error.

The newest version of RMagick on the server is 2.7.0 and I am using 2.7.1 for development. I doubt that this is the issue, but I thought I should mention it.

How can I fix this?

2008-11-13 01:58 PM

I've installed RMagick version 2.7.1 on the server for passenger. Could you check if that helped you?

2008-11-13 08:14 PM

Thank you... RMagick is still not loading, here is the error I get now:

libMagickCore.so.1: cannot open shared object file: No such file or directory - /opt/ruby-enterprise-1.8.6-20080507/lib/ruby/gems/1.8/gems/rmagick-2.7.1/lib/RMagick2.so

I have looked into this a bit and it seems like the fix may be detailed here:
http://rmagick.rubyforge.org/install-faq.html#loaderror

There are other threads on this topic that seem to have the same issue with loading RMagick2.so, and it seems to be related to the install of RMagick, not really anything to do with rails I think. Thanks for your help, hope this will point you in the right direction.

2008-11-13 09:03 PM

Hi Zef,

The issue seems to be fixed, please verify it.

2008-11-13 09:40 PM

Yes, it has been fixed, RMagick and ImageMagick are both working properly now, thank you.

2008-11-13 10:14 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.