Bundle can't install RMagick gem on Mac OSX 10.7 Bundle can't install RMagick gem on Mac OSX 10.7 ruby ruby

Bundle can't install RMagick gem on Mac OSX 10.7


fix this setting the include path of your current imagemagick installation:

Install ImageMagick with brew

brew install imagemagick

find library

$ mdfind MagickWand.h/usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/wand/MagickWand.h

Install rmagick gem

$ C_INCLUDE_PATH=/path gem install rmagick

example:

$ C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/ gem install rmagick


If you're getting Package xxx was not found.

Find the package and add it's dir path to the PKG_CONFIG_PATH variable in your ~/.bash_login or ~/.bash_profile file.

Example:

If you get the error:

Package MagickCore was not found in the pkg-config search path.

Find where the file is:

$ mdfind magickcore.pc/usr/local/homebrew/Cellar/imagemagick/6.7.7-6/lib/pkgconfig/MagickCore.pc

Add to your bash_login or bash_profile:

export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:/usr/local/homebrew/Cellar/imagemagick/6.7.7-6/lib/pkgconfig/:$PKG_CONFIG_PATH"

remember to source the bash_login/profile file


I suggest that you use brew to manage your binary dependencies. You can easily install imageMagick with brew, like this:

brew install imagemagick

This is what I have on my system:

imagemagick 6.7.1-1http://www.imagemagick.orgDepends on: jpeg, libtiff, little-cms, jasper/usr/local/Cellar/imagemagick/6.7.1-1 (1389 files, 32M)http://github.com/mxcl/homebrew/commits/master/Library/Formula/imagemagick.rb

And I have the same setup as you have in terms of machine and ruby-version.