全部!在CentOS 5.5服務器上安裝rmagick gem時遇到問題。當我發出命令:RMagick安裝錯誤
gem install rmagick
我:用正確的版本
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.1. Can't find Magick-config in /usr/bin:/bin
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
我已經安裝了ImageMagick的,我覺得在/ usr/local/bin目錄Magick,配置和我的路徑包括目錄。但是,rmagick gem安裝程序只是不搜索Magick-config的目錄。我該怎麼辦?
順便說一句,我有另一臺CentOS 5機器成功安裝ruby和rmagick,而後者在/ usr/local/bin中也有Magick-config文件。
我在/ usr/bin中將/ usr/bin軟鏈接到/ usr/local/bin/Magic-config,並且問題消失了。這似乎沒有更好的方法。 – Robert