Can't install RMagick 2.13.1. Can't find MagickWand.h.

blawzoo picture blawzoo · Jan 29, 2012 · Viewed 89.8k times · Source

When I try do install rmagick I get the following error message:

Can't install RMagick 2.13.1. Can't find MagickWand.h.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

I'm on Mac OSX 10.6.8, ruby 1.9.2p290, rvm 1.10.2.

Can anyone help me please to solve this problem.

Answer

SporkInventor picture SporkInventor · Sep 20, 2012

If you're on Ubuntu, installing this package is what fixed it for me:

sudo apt-get install libmagickwand-dev