RMagick + Dreamhost = The Death of Me

Posted by Chad

I have been working on a little application that I am ready to put into production mode. It only uses two gems (plus their dependencies); RMagick and ObjectiveFlickr. This is probably the simplest app since “Hello World” but, of course, I ran into a snag almost immediately.

The issue involves RMagick, if you didn’t already guess by the title of this entry. Any time I issue require 'rmagick' in the app, it breaks. The production.log shows MissingSourceFile (no such file to load -- rmagick) as the problem. Meaning, that RMagick can not be found. I know it is installed because the bash command gem list shows that it’s there.

There are instructions to install my own versions of ImageMagick and RubyGems. I have already installed my own RubyGems at /home/<user>/.gems so that I can install/update certain gems (eg. ObjectiveFlickr). While I do not need the most recent version of RMagick, the instructions are straight-forward and if it works I’ll take it.

The compiling of ImageMagick went without problems (I think). However when it came time for the gem install rmagick I get an error almost immediately saying the required libraries are not installed (eg. ImageMagick). My suspicion is that I need to tell it where to look for my installation of ImageMagick but I have no idea how do that.

Google is not giving me any useful results, although, I have found others posting about all types of Dreamhost + RMagick problems.

As you could guess with the other gem being an interface to the Flickr API, I am processing images and therefore need RMagick. The app is rendered useless until I can get this issue resolved. It’s a pretty nifty little app, I couldn’t find any thing else out there doing the same thing with the Flickr API, I hope to share it with you soon, until then the functionality is my little secret!

Comments

Leave a response