Ruby 1.9.2 how to install RMagick on Windows?

前端 未结 6 624
别跟我提以往
别跟我提以往 2020-12-01 01:08

I\'m currently upgrading an old rails app to use Rails 3 and Ruby 1.9.2, and RMagick is the last gem I need to install. However there doesn\'t seem to be any 1.9.2 download

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 01:46

    This did the trick for me using ruby 2.0:

    $ gem install rmagick --platform=ruby -- --with-opt-lib=C:/RailsInstaller/ImageMagick-6.7.7-Q8/lib --with-opt-include=c
    :/RailsInstaller/ImageMagick-6.7.7-Q8/include 
    

    make sure to specify your own version of ImageMagick and the file path you installed it in & include the lib folder on the command

提交回复
热议问题