Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I run Apache2 with Phusion Passenger (installed from gem) with Ruby 1.8 on Debian 6. It gives me the following LoadError:

libMagickCore.so.4: cannot open shared object file: No such file or directory - /var/myapp/rmagick/ruby/1.8/gems/rmagick-2.13.1/lib/RMagick2.so

Yet the file exists and is readable + executable for everyone, including Apache. When I copy the path from the error message and paste it into the command line, I can find it (e.g. with ls). So it clearly exists in the exact right path that it claims it can't be found!

What am I missing here?

Thanks, MrB

EDIT: Solved!

The problem wasn't that RMagick2.so wasn't found, the libMagickCore.so.4 wasn't found. This was due to the wrong version of Rmagick2.so being used. After fidgeting around with ImageMagick and RMagick versions for an hour, it now works.

share|improve this question
1  
If you solve your own problem post it as an answer and then accept it later. This helps anyone else who might have a similar problem in the future. –  ChrisF Jun 9 '11 at 10:44
    
Defining "fidgeting around" would be very very helpful. Because now I'm in the same situation, and I have no idea what "fidgeting around" actually means. Guess that means I get to open up a new question. –  VxJasonxV Mar 13 '12 at 1:05

1 Answer 1

The problem wasn't that RMagick2.so wasn't found, the libMagickCore.so.4 wasn't found. This was due to the wrong version of Rmagick2.so being used. After fidgeting around with ImageMagick and RMagick versions for an hour, it now works.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.