Fix RMagick after ImageMagick version change

If you update ImageMagick then RMagick will complain that it was configured against the older version. For example:

This installation of RMagick was configured with ImageMagick 6.7.5 but ImageMagick 6.7.6-4 is in use

For me this occurred because ImageMagick is installed by my operating system’s package manager while RMagick is installed as a gem - when I updated my OS it pulled in the latest version of ImageMagick and broke RMagick.

There are two solutions to this problem:

  • Downgrade ImageMagick to the version expected by RMagick.
  • Update RMagick.

To update RMagick, simply reinstall it so it builds against the version of ImageMagick that’s on your system:

bpc steph # gem list rmagick

*** LOCAL GEMS ***

rmagick (2.13.1)
bpc steph # gem install rmagick -v 2.13.1
Building native extensions.  This could take a while...
Successfully installed rmagick-2.13.1
1 gem installed
Installing ri documentation for rmagick-2.13.1...
Installing RDoc documentation for rmagick-2.13.1...

Last modified: 15/04/2012 Tags: , ,

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top