ruby on rails - Install rmagick on macosx is not working, duplicate references and references are not founded -
i'm trying install rmagick
on macosx, reason, have lot of problems installation. found like: this trhead , this other thread, doesnt work, looks if have 2 references rmagick
, file wand/magickwand.h
not founded gem.
my env variable is:
$ echo "$pkg_config_path" /usr/local/cellar/imagemagick/6.8.9-1/include/imagemagick-6/
the log when try install gem is:
$ gem install rmagick building native extensions. take while... error: error installing rmagick: error: failed build gem native extension. /users/jarvis/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb checking ruby version >= 1.8.5... yes checking /usr/bin/clang... yes checking magick-config... yes warning: found more 1 imagemagick installation. cause problems @ runtime. /usr/local/bin/magick-config reports version 6.8.9 q16 installed in @@homebrew_cellar@@/imagemagick/6.8.9-1 /opt/imagemagick/bin/magick-config reports version 6.8.8 q16 installed in /opt/imagemagick using 6.8.9 q16 @@homebrew_cellar@@/imagemagick/6.8.9-1. checking imagemagick version >= 6.4.9... yes checking hdri disabled version of imagemagick... yes checking stdint.h... yes checking sys/types.h... yes checking wand/magickwand.h... no can't install rmagick 2.13.2. can't find magickwand.h. *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. 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/jarvis/.rvm/rubies/ruby-2.1.1/bin/ruby extconf failed, exit code 1 gem files remain installed in /users/jarvis/.rvm/gems/ruby-2.1.1/gems/rmagick-2.13.2 inspection. results logged /users/jarvis/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/rmagick-2.13.2/gem_make.out
a friend of mine had same problem when upgraded mavericks, if you're using brew, try uninstalling package , installing again.
brew rm imagemagick brew update && brew upgrade
and
brew reinstall imagemagick
Comments
Post a Comment