Ruby 1.9.2 how to install RMagick on Windows?

前端 未结 6 657
别跟我提以往
别跟我提以往 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:29

    After some attempts, this finally worked for me:

    1. Install DevKit : https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

    2. Install ImageMagick (tick yes for headers in the installer) to a folder without spaces in its path (i used C:/ImageMagick)

    3. Open up mingw (msys.bat in DevKit folder) -- and run gem install rmagick --platform=ruby -- --with-opt-lib=c:/ImageMagick/lib --with-opt-include=c:/ImageMagick/include (replace the two paths to account for your imagemagick path if needed)

提交回复
热议问题