Phusion Passenger + Apache: LoadError -- No such file or directory

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.


I had the same problem on my rails app. I fixed it by changing the requested version of the gem 'rmagick'. Since I was already using the latest version (4.1.2 at this time), I changed my Gemfile.lock to request 4.1.1 and rerun bundle install. That was it.