[Error]Can't install RMagick 2.13.4. You must have ImageMagick 6.4.9 or later.

时间:2021-07-08 13:31:44

gem 安装ruby插件的时候 出现了一个错误


Installing rmagick 2.13.4 with native extensions

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

...

Can't install RMagick 2.13.4. You must have ImageMagick 6.4.9 or later.

查看现在系统的设置(系统环境位cento5.1)


# rpm -aq|grep -i imagemagick

ImageMagick-6.2.8.0-15.el5_8

ImageMagick-devel-6.2.8.0-15.el5_8

ImageMagick-6.2.8.0-15.el5_8

ImageMagick-devel-6.2.8.0-15.el5_8

原来是Imagemagick的版本过造成的。

解决参考

problem-installing-rmagick-rubygem-on-centos-5

原来的全卸载了,否则会有冲突


yum remove ImageMagick*

rpm -Uvh http://rbel.frameos.org/rbel5
yum install ImageMagick-devel ImageMagick-c++-devel --disablerepo="base"
gem install rmagick