2011-07-01 113 views
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. 

我的問題是我怎麼能安裝ImageMagickversion > 6.4.9。 Isnt yum install應該安裝最新版本的ImageMagick?或者我應該嘗試舊版本的rmagick寶石?在那種情況下,是否有人知道rmagick gem的舊版本號?

回答