Skip to content

Instantly share code, notes, and snippets.

@roolo
Created May 6, 2013 11:30
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save roolo/5524621 to your computer and use it in GitHub Desktop.
Save roolo/5524621 to your computer and use it in GitHub Desktop.
Fix for RMagick 2.12.2 vs. ImageMagick. Mac, Homebrew
Can't install RMagick 2.12.2. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.
*** 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:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/mailo/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby
--with-MagickCorelib
--without-MagickCorelib
--with-Magicklib
--without-Magicklib
Gem files will remain installed in /Users/mailo/.rvm/gems/ree-1.8.7-2012.02@alaplaya/gems/rmagick-2.12.2 for inspection.
Results logged to /Users/mailo/.rvm/gems/ree-1.8.7-2012.02@alaplaya/gems/rmagick-2.12.2/ext/RMagick/gem_make.out
An error occurred while installing rmagick (2.12.2), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.12.2'` succeeds before bundling.
$ 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
@Mashpy
Copy link

Mashpy commented Aug 16, 2016

This will also help you.
brew remove imagemagic
brew tap homebrew/versions
brew search imagemagic
brew install homebrew/versions/imagemagick-ruby186
gem install rmagick -v '2.12.2'

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