D
D
Denis Savitsky2012-12-18 00:02:32
Ruby on Rails
Denis Savitsky, 2012-12-18 00:02:32

Installing Rmagick on OS X 10.7 + homebrew + rbenv?

Installing Rmagick on OS X 10.7 + homebrew + rbenv.
Who can help? What environment variables should be set?
After installing Imagemagick:

$ gem install rmagick                                                                                                                                             [3:33:18]<br>
Building native extensions.  This could take a while...<br>
ERROR:  Error installing rmagick:<br>
  ERROR: Failed to build gem native extension.<br><br>
        /Users/denis/.rbenv/versions/1.9.3-p327/bin/ruby extconf.rb<br>
checking for Ruby version >= 1.8.5... yes<br>
extconf.rb:128: Use RbConfig instead of obsolete and deprecated Config.<br>
checking for gcc... yes<br>
checking for Magick-config... yes<br>
checking for ImageMagick version >= 6.4.9... yes<br>
checking for HDRI disabled version of ImageMagick... yes<br>
checking for stdint.h... yes<br>
checking for sys/types.h... yes<br>
checking for wand/MagickWand.h... yes<br>
checking for InitializeMagick() in -lMagickCore... no<br>
checking for InitializeMagick() in -lMagick... no<br>
checking for InitializeMagick() in -lMagick++... no<br>
Can't install RMagick 2.13.1. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.<br><br>
*** extconf.rb failed ***<br>
Could not create Makefile due to some reason, probably lack of<br>
necessary libraries and/or headers.  Check the mkmf.log file for more<br>
details.  You may need configuration options.<br><br>
Provided configuration options:<br>
  --with-opt-dir<br>
  --without-opt-dir<br>
  --with-opt-include<br>
  --without-opt-include=${opt-dir}/include<br>
  --with-opt-lib<br>
  --without-opt-lib=${opt-dir}/lib<br>
  --with-make-prog<br>
  --without-make-prog<br>
  --srcdir=.<br>
  --curdir<br>
  --ruby=/Users/denis/.rbenv/versions/1.9.3-p327/bin/ruby<br>
  --with-MagickCorelib<br>
  --without-MagickCorelib<br>
  --with-Magicklib<br>
  --without-Magicklib<br>
  --with-Magick++lib<br>
  --without-Magick++lib<br><br>
Gem files will remain installed in /usr/local/gems/rmagick-2.13.1 for inspection.<br>
Results logged to /usr/local/gems/rmagick-2.13.1/ext/RMagick/gem_make.out<br>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
zed_0xff, 2012-12-18
@zed_0xff

  brew install imagemagick
  gem install rmagick

S
skipfish, 2013-01-03
@skipfish

brew install imagemagick
cd /usr/local/Cellar/imagemagick/6.8.0-10/lib
ln -s libMagick++-Q16.7.dylib libMagick++.dylib
ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib
ln -s libMagickWand -Q16.7.dylib libMagickWand.dylib
gem install rmagick

I
ignar, 2012-12-18
@ignar

I also recently had problems of this kind, this article helped me: Stackoverflow
There is only one answer, the idea is to install everything from the sources with the flags listed there, maybe it will help you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question