Skip to content

Instantly share code, notes, and snippets.

@nodecarter
Last active March 6, 2018 18:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nodecarter/ac68b7d8f150705515b9 to your computer and use it in GitHub Desktop.
Save nodecarter/ac68b7d8f150705515b9 to your computer and use it in GitHub Desktop.
problem with installing rmagick gem on mac os x
$ gem install rmagick -v '2.12.2' [ruby-1.9.3-p551]
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/Users/nodecarter/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -r ./siteconf20160205-17372-lm8cre.rb extconf.rb
checking for Ruby version >= 1.8.5... yes
extconf.rb:107: Use RbConfig instead of obsolete and deprecated Config.
checking for gcc-4.9... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.3.5... 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... yes
checking for InitializeMagick() in -lMagickCore... no
checking for InitializeMagick() in -lMagick... no
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
--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/nodecarter/.rvm/rubies/ruby-1.9.3-p551/bin/ruby
--with-MagickCorelib
--without-MagickCorelib
--with-Magicklib
--without-Magicklib
extconf failed, exit code 1
Gem files will remain installed in /Users/nodecarter/.rvm/gems/ruby-1.9.3-p551/gems/rmagick-2.12.2 for inspection.
Results logged to /Users/nodecarter/.rvm/gems/ruby-1.9.3-p551/extensions/x86_64-darwin-15/1.9.1/rmagick-2.12.2/gem_make.out
cd /usr/local/Cellar/imagemagick/6.9.6-4/lib
ln -s libMagick++-6.Q16.6.dylib libMagick++.dylib
ln -s libMagickCore-6.Q16.2.dylib libMagickCore.dylib
ln -s libMagickWand-6.Q16.2.dylib libMagickWand.dylib
C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/6.9.6-4/include/ImageMagick-6 PKG_CONFIG_PATH=/usr/local/Cellar/imagemagick/6.9.6-4/lib/pkgconfig 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