在 CentOS 中安装 ImagMagick 和 rmagick gem

发布于 2024-11-17 21:49:28 字数 1236 浏览 4 评论 0原文

我知道这个问题已经被问过好几次了,但问题是他们引入了新版本的 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 吗?或者我应该尝试旧版本的rmagickgem?那么,有人知道 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 rmagickgem? In that case, does any one know the older version numbers of rmagick gem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

猫九 2024-11-24 21:49:28

CentOS yum 存储库中的 ImageMagick 版本已过时。这位好心人提供了更新的软件包: Problem Installation RMagick ruby​​gem 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

混吃等死 2024-11-24 21:49:28

你必须是root。就跑

yum -y install ImageMagick-perl

you must be root. just run

yum -y install ImageMagick-perl
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文