How to install rmagick gem on Windows?

后端 未结 4 1027
刺人心
刺人心 2021-01-12 05:07

How do I install rmagick gem for Windows XP? I already installed ImageMagick with the header files, and I installed RailsInstaller.org which comes with DevKit. I don\'t know

相关标签:
4条回答
  • 2021-01-12 05:35

    RMagic won't work with ImageMagic 6.8. I updated the RMagick Github wiki with detailed instructions.

    https://github.com/rmagick/rmagick/wiki

    There I found gems (haha) such as

    If ImageMagick isn't first in your system path, you'll get an "Invalid drive specification" error when extconf.rb tries to identify the ImageMagick version.

    and

    gem install rmagick -- '--with-opt-dir="[path to ImageMagick]"'
    

    (Obvious, huh?)

    I believe RMagick is a dead project. There hasn't been a commit for 2 years!

    0 讨论(0)
  • 2021-01-12 05:46

    Start Command Prompt in Administrator mode. Set CPATH and LIBRARY_PATH environment variables to point respectively to ImageMagick installation directory include and lib subdirectories (so the DevKit will find them at build time)

    set CPATH=C:\Program Files (x86)\ImageMagick-6.7.9-Q16\include set LIBRARY_PATH=C:\Program Files (x86)\ImageMagick-6.7.9-Q16\lib

    Then start a new command prompt and

    gem install rmagick

    This worked for me! See the result in http://www.redmine.org/projects/redmine/wiki/HowTo_install_rmagick_gem_on_Windows

    0 讨论(0)
  • 2021-01-12 05:49

    You should be using rmagick-win32:

    http://rmagick.rubyforge.org/install-faq.html#win

    0 讨论(0)
  • 2021-01-12 05:49

    try this video, it goes through the installation process for window 7. I followed the steps and it worked for me.

    http://www.youtube.com/watch?v=gEWAVlNCKhg&feature=youtu.be

    0 讨论(0)
提交回复
热议问题