在 CentOS 中安装 ImagMagick 和 rmagick gem
我知道这个问题已经被问过好几次了,但问题是他们引入了新版本的 rmagick,而旧的方法现在不适用。
Server - CentOS release 5.6 (Final)
Ruby - ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-linux]
Rails - 2.3.5
我尝试通过这些步骤安装 rmagick gem。当我执行这些查询时,我是 root 用户:
yum install ImageMagick.i386
yum install ImageMagick-c++-devel.i386
gem install rmagick
前 2 个命令执行顺利,没有任何错误。在 gem install rmagick
上,我收到此错误:
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes
Warning: Found a partial ImageMagick installation. Your operating system likely has some built-in ImageMagick libraries but not all of ImageMagick. This will most likely cause problems at both compile and runtime.
Found partial installation at: /usr
checking for ImageMagick version >= 6.4.9... no
Can't install RMagick 2.13.1. You must have ImageMagick 6.4.9 or later.
我的问题是如何安装 version >
。 ImageMagick
的 6.4.9yum install
不是应该安装最新版本的 ImageMagick 吗?或者我应该尝试旧版本的rmagick
gem?那么,有人知道 rmagick gem 的旧版本号吗?
I know this has been asked several times, but the problem is they bring in new versions of rmagick and the older methods are not applicable now.
Server - CentOS release 5.6 (Final)
Ruby - ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-linux]
Rails - 2.3.5
I tried to install rmagick gem through these steps. I was root user when I executed these queries:
yum install ImageMagick.i386
yum install ImageMagick-c++-devel.i386
gem install rmagick
The first 2 commands executed smoothly without any errors. On gem install rmagick
, I am getting this error:
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes
Warning: Found a partial ImageMagick installation. Your operating system likely has some built-in ImageMagick libraries but not all of ImageMagick. This will most likely cause problems at both compile and runtime.
Found partial installation at: /usr
checking for ImageMagick version >= 6.4.9... no
Can't install RMagick 2.13.1. You must have ImageMagick 6.4.9 or later.
My question is how can I install a version > 6.4.9
of ImageMagick
. Isnt yum install
supposed to install latest version of ImageMagick? or should I try an older version of rmagick
gem? In that case, does any one know the older version numbers of rmagick gem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
CentOS yum 存储库中的 ImageMagick 版本已过时。这位好心人提供了更新的软件包: Problem Installation RMagick rubygem on Centos 5
The version of ImageMagick in the CentOS yum repo is outdated. This kind person has provided updated packages: Problem installing RMagick rubygem on Centos 5
你必须是root。就跑
you must be root. just run