I can't install rmagick gem on windows

前端 未结 5 1820
梦如初夏
梦如初夏 2020-12-28 11:35

I used ruby 1.9.2 and rails 3.0.3. iam trying to install rmagick gem but when i run bundle install I got an error tells me:

Installing rmagick          


        
5条回答
  •  借酒劲吻你
    2020-12-28 11:57

    Prerequisites:
    Ruby > 1.8.6
    DevKit (any version)
    No other ImageMagick installation or PATH entry

    Step 1: Installing ImageMagick:

    Download ImageMagick: http://imagemagick.spd.co.il/binaries/ImageMagick-6.8.0-3-Q16-windows-dll.exe

    Install ImageMagick:
    *Important: The installation path should NOT contain any spaces.
    Ideally select “C:\ImageMagick″

    Please make sure to select the below options:

    Add application directory to your path system
    Install development headers and libraries for C and C++

    Step 2: Installing rmagick:

    Use the following command to install rmagick gem:

    gem install rmagick --platform=ruby -- --with-opt-lib=c:/ImageMagick/lib --with-opt-include=c:/ImageMagick/include
    

    via-

    http://shoobm.wordpress.com/2013/01/03/installing-rmagick-gem-on-windows-7/

提交回复
热议问题