ImageMagic installed via Homebrew doesn't work #23

bf4 opened this Issue Jul 24, 2014 · 7 comments


None yet

4 participants

bf4 commented Jul 24, 2014

Issue by jkamenik
Thursday Dec 01, 2011 at 18:55 GMT
Originally opened as #39

I use a Mac, and homebrew for many packages including ImageMagick. I noticed a very annoying issue that I had to work around. Homebrew symlinks to /usr/local/bin and /usr/local/include. For example: /usr/local/include/ImageMagick -> /usr/local/homebrew/.../ImageMagick. This works fine with most libraries that need imagemagick since Magick-config produces the correct paths to the symlinks and the compilers just follow the sym links.

The rmagic gem compile does not seem capible of following symlinks and therefore cannot find /usr/local/include/wand/MagickWand.h which is there.

$ gem install rmagick
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
    ERROR: Failed to build gem native extension.

        /Users/jkamenik/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for /usr/bin/gcc-4.2... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no

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.

Provided configuration options:

My solution was to install ImageMagick via, which doesn't use symlinks. Without symlinks things work fine.

bf4 commented Jul 24, 2014

Comment by ged
Wednesday May 09, 2012 at 23:19 GMT

Works for me:

$ brew info imagemagick
imagemagick 6.7.1-1
Depends on: jpeg, libtiff, little-cms, jasper
/usr/local/Cellar/imagemagick/6.7.1-1 (1390 files, 32M)
  Installed with: --use-lqr

Some tools will complain unless the ghostscript fonts are installed to:

$ gem install rmagick
Fetching: rmagick-2.13.1.gem (100%)
Building native extensions.  This could take a while...
Successfully installed rmagick-2.13.1
1 gem installed
Installing RDoc documentation for rmagick-2.13.1...

$ ruby -v -rrmagick -e 'puts Magick::Version, Magick::Magick_version'
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
RMagick 2.13.1
ImageMagick 6.7.1-1 2012-02-08 Q16
bf4 commented Jul 24, 2014

Comment by arthurnn
Thursday Dec 20, 2012 at 17:06 GMT

probably u will find the solution in here: #60

bf4 commented Jul 24, 2014

Comment by linduxed
Saturday Nov 02, 2013 at 16:02 GMT

Looks like a candidate for closing, @mmaiza.

Koronen commented Sep 7, 2014

@linduxed is this still a candidate for closing?

ioquatix commented Sep 7, 2014

This is something that needs to be part of the updated documentation.

@ioquatix ioquatix added this to the documentation milestone Sep 7, 2014
linduxed commented Sep 9, 2014

I'll check later today if it's still a problem.


Unfortunately I didn't have time yesterday to do this at work and now I don't have access to a Mac for verifying the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment