【问题标题】:Installing imagemagick and rmagick on Lion 10.7在 Lion 10.7 上安装 imagemagick 和 rmagick
【发布时间】:2012-03-05 09:42:14
【问题描述】:

我使用了这个链接http://rmagick.rubyforge.org/install-osx.html,现在我也无法进行 brew install imagemagic..

我这样做了

gem install rmagick --version 1.15.17

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

    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby gem_extconf.rb

sh configure 

Configuring RMagick 1.15.17
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for ruby... /usr/bin/ruby
checking Ruby version... 1.8.7
checking for Magick-config... Magick-config
checking ImageMagick version... 6.7.4
checking for library containing InitializeMagick... no
configure: error: Can't install RMagick. Can't find libMagick or one of the dependent         libraries.
              Check the config.log file for more detailed information.
RMagick configuration failed with status 1.

【问题讨论】:

    标签: ruby-on-rails imagemagick rmagick


    【解决方案1】:

    在安装rmagick之前,你应该提前安装imagemagick。

    可以使用brew

    brew install imagemagick
    

    然后

    gem install rmagick
    

    【讨论】:

    • brew install imagemagic 抛出错误:警告:您似乎安装了 MacPorts 或 Fink。与其他软件包管理器一起安装的软件会导致 Homebrew 出现已知问题。如果公式构建失败,请卸载 MacPorts/Fink 并重试。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-05
    相关资源
    最近更新 更多