jerry520123 2009-03-20 13:06
浏览 231
已采纳

安装rmagick的问题

系统是centos5.2
imagemagick是用yum安装的,可以正常使用,
我在安装rmagick出现问题。
首先用gem install rmagick出现下面的错误:
[root@localhost web]# gem install rmagick --include-dependencies
INFO: gem install -y is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install rmagick --include-dependencies
checking for Ruby version >= 1.8.2... yes
checking for gcc... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.3.0... no
Can't install RMagick 2.9.1. You must have ImageMagick 6.3.0 or later.

*** 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=/usr/bin/ruby

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rmagick-2.9.1 for inspection.

Results logged to /usr/lib/ruby/gems/1.8/gems/rmagick-2.9.1/ext/RMagick/gem_make.out

其次我用tar包安装,解压后出现下面的问题:
[root@localhost RMagick-2.9.1]# ruby setup.rb
---> lib
---> lib/rvg
<--- lib/rvg
<--- lib
---> ext
---> ext/RMagick
/usr/bin/ruby /root/RMagick-2.9.1/ext/RMagick/extconf.rb
checking for Ruby version >= 1.8.2... yes
checking for gcc... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.3.0... no
Can't install RMagick 2.9.1. You must have ImageMagick 6.3.0 or later.

*** /root/RMagick-2.9.1/ext/RMagick/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=/root/RMagick-2.9.1/ext/RMagick
--curdir
--ruby=/usr/bin/ruby
setup.rb:655:in command': system("/usr/bin/ruby" "/root/RMagick-2.9.1/ext/RMagick/extconf.rb") failed (RuntimeError)
from setup.rb:660:in
ruby'
from setup.rb:1238:in extconf'
from setup.rb:1230:in
config_dir_ext'
from setup.rb:1532:in __send__'
from setup.rb:1532:in
traverse'
from setup.rb:1549:in dive_into'
from setup.rb:1530:in
traverse'
from setup.rb:1534:in traverse'
... 8 levels...
from setup.rb:991:in
exec_config'
from setup.rb:812:in invoke'
from setup.rb:772:in
invoke'

from setup.rb:1578

希望能帮我解决下。谢谢了!

  • 写回答

2条回答 默认 最新

  • weixin_42301347 2009-03-20 17:59
    关注

    checking for ImageMagick version >= 6.3.0
    说明你ImageMagick的版本不够
    好好看看。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口