RMagick on OSX

Posted by Roy Hooper Mon, 19 Feb 2007 00:22:00 GMT

You’d think that installing rmagick on OSX would just work if you’re a fink user and use the gem.

You’d be dead wrong, unfortunately. Like I was.

Instead, you should use Darwin Ports and manually build ImageMagick/RMagick.

Fortunately there’s some really easy to follow instructions here: http://rmagick.rubyforge.org/install-osx.html

The error I was encountering occurred when I tried:

require_gem 'rmagick'
require 'RMagick'
Magick
in irb. The Magick bit failed telling me: NameError: uninitialized constant Magick. After the above, I can skip the require_gem part, and go straight to it:
require 'RMagick'