Error installing rmagick gem mac. "Can't find MagickWand.h" "No package 'MagickCore' found"
Hi,
i was stuck installing rmagick gem on mac. Got this error:
Make sure you have installed ImageMagick:
After this i was able to run "bundle install" correctly.
Best,
Waldi
i was stuck installing rmagick gem on mac. Got this error:
I tried everything i found on the internet.. after a few days i found the solution:Installing rmagick 2.13.3 with native extensionsGem::Ext::BuildError: ERROR: Failed to build gem native extension./Users/barbewaldemar/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20151120-67623-1umk1p2.rb extconf.rbchecking for Ruby version >= 1.8.5... yeschecking for gcc... yeschecking for Magick-config... yeschecking for ImageMagick version >= 6.4.9... yesPackage MagickCore was not found in the pkg-config search path.Perhaps you should add the directory containing `MagickCore.pc'to the PKG_CONFIG_PATH environment variableNo package 'MagickCore' foundPackage MagickCore was not found in the pkg-config search path.Perhaps you should add the directory containing `MagickCore.pc'to the PKG_CONFIG_PATH environment variableNo package 'MagickCore' foundPackage MagickCore was not found in the pkg-config search path.Perhaps you should add the directory containing `MagickCore.pc'to the PKG_CONFIG_PATH environment variableNo package 'MagickCore' foundPackage MagickCore was not found in the pkg-config search path.Perhaps you should add the directory containing `MagickCore.pc'to the PKG_CONFIG_PATH environment variableNo package 'MagickCore' foundchecking for stdint.h... yeschecking for sys/types.h... yeschecking for wand/MagickWand.h... noCan't install RMagick 0.0.0. Can't find MagickWand.h.*** extconf.rb failed ***Could not create Makefile due to some reason, probably lack of necessarylibraries and/or headers. Check the mkmf.log file for more details. You mayneed 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/barbewaldemar/.rvm/rubies/ruby-2.2.1/bin/$(RUBY_BASE_NAME)extconf failed, exit code 1Gem files will remain installed in /Users/barbewaldemar/.rvm/gems/ruby-2.2.1/gems/rmagick-2.13.3 for inspection.Results logged to /Users/barbewaldemar/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0-static/rmagick-2.13.3/gem_make.outAn error occurred while installing rmagick (2.13.3), and Bundler cannot continue.Make sure that `gem install rmagick -v '2.13.3'` succeeds before bundling.
Make sure you have installed ImageMagick:
brew install ImageMagickThen i searched for "MagickWand.pc" file.
sudo find / -name "MagickWand.pc"It was in:
So to solve this i added this path to the env variable "PKG_CONFIG_PATH"/usr/local/Cellar/imagemagick/6.9.2-4/lib/pkgconfig
export PKG_CONFIG_PATH="/usr/local/Cellar/imagemagick/6.9.2-4/lib/pkgconfig"
After this i was able to run "bundle install" correctly.
Best,
Waldi
Kommentare
Kommentar veröffentlichen