2
我知道這已經被問過好幾次了,但問題是他們引入了rmagick的新版本,而舊的方法現在不適用。在CentOS中安裝ImagMagick和rmagick gem
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.
我的問題是我怎麼能安裝ImageMagick
的version > 6.4.9
。 Isnt yum install
應該安裝最新版本的ImageMagick?或者我應該嘗試舊版本的rmagick
寶石?在那種情況下,是否有人知道rmagick gem的舊版本號?
我可以證實,與更新的imagemagick軟件包鏈接的答案幫助我安裝rmagick成功。 –