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.