Question

Whenever I try to install the rmagick gem using sudo gem install rmagick the install fails when it tries to include a header file called wand/MagicWand.h

The exact error from the log file is:

gcc -E -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I.  -I$MAGICK_HOME/include/ImageMagick  -I/include/ImageMagick -fopenmp  conftest.c -o conftest.i"
conftest.c:1:29: error: wand/MagickWand.h: No such file or directory
checked program was:
/* begin */
1: #include <wand/MagickWand.h>
/* end */

The $MAGICK_HOME env variable is set to /usr/bin/imagemagick The header file it is looking for is located in /usr/bin/imagemagick/include/ImageMagick/wand/MagickWand.h

I was trying to follow the instructions found here. I am installing this on an Intel iMac running Snow Leopard.

Was it helpful?

Solution

An alternative approach is to use Brew instead of macports. There is information on how to install brew and then you can install imagemagick by using the command brew install imagemagick. Read the wiki to see how to clear out macport installations.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top