sudo gem install rmagick失败了

时间:2012-01-07 22:40:37

标签: ruby ruby-on-rails-3 rmagick

当我尝试在我的机器上安装RMagick时,我收到此错误,因此我可以使用Scruffy图形创建器:

sudo gem install rmagick
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
    ERROR: Failed to build gem native extension.

        /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... 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... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  

任何帮助都会很棒!感谢。

1 个答案:

答案 0 :(得分:2)

看起来您使用二进制发行版或其他不包含标题的内容安装了ImageMagick。从您的/Users目录中,您可能正在使用OSX。假设是这样,请使用MacportsHomebrew安装ImageMagick。