RVM&x2B;Ruby 1.9.2+;Rmagick+;Lion=系统工作,RVM不工作';T
我已经通过RVM在新安装的OSXLion上安装了Ruby1.9.2。我已经通过自制软件安装了ghostscript和imagemagick,当使用RVM运行gem安装rmagick时,它失败了。在ruby的系统安装上使用gem install rmagick时,它工作得很好 这是产生的错误:RVM&x2B;Ruby 1.9.2+;Rmagick+;Lion=系统工作,RVM不工作';T,ruby,rvm,osx-lion,rmagick,homebrew,Ruby,Rvm,Osx Lion,Rmagick,Homebrew,我已经通过RVM在新安装的OSXLion上安装了Ruby1.9.2。我已经通过自制软件安装了ghostscript和imagemagick,当使用RVM运行gem安装rmagick时,它失败了。在ruby的系统安装上使用gem install rmagick时,它工作得很好 这是产生的错误: ─wedtm@WedHQ ~/.rvm/gems/ruby-1.9.2-p290/cache ‹ruby-1.8.7› ╰─$ gem install rmagick
─wedtm@WedHQ ~/.rvm/gems/ruby-1.9.2-p290/cache ‹ruby-1.8.7›
╰─$ gem install rmagick 1 ↵
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/Users/wedtm/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for clang... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... 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
checking for InitializeMagick() in -lMagick++... no
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.
*** 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/wedtm/.rvm/rubies/ruby-1.8.7-p352/bin/ruby
--with-MagickCorelib
--without-MagickCorelib
--with-Magicklib
--without-Magicklib
--with-Magick++lib
--without-Magick++lib
Gem files will remain installed in /Users/wedtm/.rvm/gems/ruby-1.8.7-p352/gems/rmagick-2.13.1 for inspection.
Results logged to /Users/wedtm/.rvm/gems/ruby-1.8.7-p352/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
这可能是什么原因造成的?关于如何让RVM像它应该看到的那样看到imagemagick,有什么想法吗?magick安装程序脚本()在mac上安装imagemagick方面做得非常好。当我在没有使用此脚本的情况下安装时,安装看起来会成功,但gem永远找不到安装
使用这个脚本,我成功地完成了之前多次失败的安装。祝你好运:)这为你解决了问题吗?不知道为什么,但这成功了。至少在下次我遇到Rails和ImageMagick的问题之前……哇,太棒了!这帮了我大忙。我曾尝试用Brew安装ImageMagick,但始终无法安装Rmagick。这就成功了。一个问题:使用此方法安装ImageMagick后,如何卸载它?