Problem installing RMagick rubygem on Centos 5

前端 未结 7 606
一生所求
一生所求 2021-02-01 07:02

I\'m having problems installing the RMagick rubygem on Centos 5. I\'ve followed the steps detailed in http://rmagick.rubyforge.org/install2-linux.html but when I try:

         


        
7条回答
  •  鱼传尺愫
    2021-02-01 07:56

    I got around this in RHEL 5.4 by temporarily symlinking /usr/local/bin/Magick-config to /usr/bin/Magick-conf, so the gem install could find this Magick-config executable.

    In my case, I installed ImageMagick from source with --prefix=/usr/local. For some reason, the gem install didn't want to look there for the config, even with gem install --local ../rmagick-2.12.2.gem -- -with-opt-dir=/usr/local/bin. Running yum install ImageMagick-devel would get the binary there, but then the gem install would say that ImageMagick was the wrong version.

提交回复
热议问题