September 1st, 2010 00:07   |   Category: Ruby on Rails

The Problem: (occurred in Ubuntu 10.04.1)

This installation of RMagick was configured with ImageMagick 6.5.5 but ImageMagick 6.5.7-8 is in use.

The Solution:

Uninstall “rmagick” gem

$ sudo gem uninstall rmagick

Compile and install RMagick from source code

$ wget http://files.rubyforge.vm.bytemark.co.uk/rmagick/RMagick-2.13.1.tar.gz
$ tar xzf RMagick-2.13.1.tar.gz
$ cd RMagick-2.13.1
$ ruby setup.rb
$ sudo ruby setup.rb install

Test and see if it works

$ irb
irb(main):001:0> require "RMagick"
=> true

Alternate solutions

Conclusion

These pretzels are making me thirsty