ImageMagick / RMagick - Can't install RMagick 2.13.1. Can't find Magick-config

I was getting the same error and it got resolved after installing the libmagick9-dev library on ubuntu 11.



Update (Thanks to the commenters - Dec. 2012)

$ sudo apt-get install libmagickwand-dev or $ sudo apt-get install graphicsmagick-libmagick-dev-compat for ubuntu 12

$ sudo apt-get install libmagickwand-dev or $ sudo apt-get install libmagick9-dev for ubuntu 11 or below.

$ yum install ImageMagick-devel for centos

$ brew install imagemagick for Mac OS (using Homebrew)


you need the imagemagick libraries under ubuntu

$ sudo apt-get install libmagickwand-dev

it contains all missing libraires

then run bundle install command


I believe you need the Imagemagick libraries.

If you are using Homebrew (which I'd highly recommend), simply do

$ brew install imagemagick

Then rerun bundle install


Mac OS Mountain Loin (using Homebrew)

  1. download and install http://xquartz.macosforge.org/trac/wiki/X112.7.2
  2. brew install imagemagick
  3. gem install rmagick