So as I am working on the new site I got the following error about incompatible RMagick and ImageMagick versions.

Loading development environment.
>> cap =
RuntimeError: This version of RMagick was created to run with ImageMagick 6.2.6
but ImageMagick 6.2.8 is installed on this system. You should either
   1) refer to the RMagick README file to learn how to create
      a version of RMagick for ImageMagick 6.2.8, or

I am using ArchLinux and Arch doesn’t keep previous versions of packages like some other Linux distributions so my options are:

  1. Recompile ImageMagick
  2. Recompile RMagick

Knowing that ImageMagick is a full library, versus RMagick, which is probably just a wrapper and much smaller than ImageMagick, I decided to recompile RMagick. So off I went…

  1. cd /usr/lib/ruby/gems/1.8/gems/rmagick-1.13.0
  2. chmod u+x configure
  3. ./configure
  4. make
  5. make install

After waiting for the libraries to compile and install, it was time to test it out.

Loading development environment.
>> cap =
=> #<Captcha:0xb757b300>

How nice! So that’s what you need to do if you get this conflict 🙂

Note if that doesn’t seem to solve your problem then most probably the default target for isn’t where rails is looking. So you might have to run one more command.

cp /usr/lib/ruby/site_ruby/1.8/i686-linux/ /usr/lib/ruby/site_ruby/1.8/
Back to blog...