简体   繁体   English

在 CentOS 中安装 ImagMagick 和 rmagick gem

[英]Installing ImagMagick and rmagick gem in CentOS

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.我知道这已经被问过好几次了,但问题是他们带来了新版本的 rmagick 并且旧的方法现在不适用了。

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.我尝试通过这些步骤安装 rmagick gem。 I was root user when I executed these queries:当我执行这些查询时,我是 root 用户:

yum install ImageMagick.i386
yum install ImageMagick-c++-devel.i386
gem install rmagick

The first 2 commands executed smoothly without any errors.前 2 个命令执行顺利,没有任何错误。 On gem install rmagick , I am getting this error: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.

My question is how can I install a version > 6.4.9 of ImageMagick .我的问题是如何安装version > 6.4.9ImageMagick Isnt yum install supposed to install latest version of ImageMagick? yum install不应该安装最新版本的 ImageMagick 吗? or should I try an older version of rmagick gem?还是我应该尝试旧版本的rmagick gem? In that case, does any one know the older version numbers of rmagick gem?在那种情况下,有人知道 rmagick gem 的旧版本号吗?

The version of ImageMagick in the CentOS yum repo is outdated. CentOS yum 存储库中的 ImageMagick 版本已过时。 This kind person has provided updated packages: Problem installing RMagick rubygem on Centos 5这种人提供了更新的软件包: Problem installed RMagick rubygem on Centos 5

you must be root.你必须是根。 just run赶紧跑

yum -y install ImageMagick-perl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM