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 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?