ImageMagick - “CORE_RL_magick_.dll not found” or how to install RMagick on windows with ruby 1.9.2

前端 未结 4 600
温柔的废话
温柔的废话 2020-11-30 02:53

I\'m working on a Rail3 app. After struggling for several hours and finally installing the rmagick 2.13.1 gem without errors on win7x64 / ruby 1.9.2, I\'ve run into another

4条回答
  •  伪装坚强ぢ
    2020-11-30 03:33

    This was a pain to get installed. Right now at this moment, I had to reinstall Ruby, Rails, the Devkit and ImageMagick. You're best bet is to do the same and go with the latest versions of all of them except Rails, unless your cool with 3.1. At this moment I am using the latest versions:

    ImageMagick-6.7.2-1-Q16-windows-dll - Win32 dynamic at 16 bits-per-pixel
    
    DevKit-tdm-32-4.5.2-20110712-1620-sfx
    
    rubyinstaller-1.9.2-p290
    
    Rails 3.0.9
    

    My system:

    Windows 7, x64

    My path is a little different from the accepted answer.

    My c:/ImageMagick

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

    I installed Ruby first with all the options checked off, then ImageMagick with the "associated path option" and "headers" checked off.

    Then set up the devkit easily:

    1) cd c:\DevKit
    2) ruby dk.rb init
    3) ruby dk.rb install
    

    Then afterwards inside of the devkit (c:/devkit) did this and it installed without error:

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

    If you still have issues then maybe this could help you, I was trying this but I am to unfamiliar with setting the environments and getting Step 5 to work: http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/

    The Step 5 I believe can be changed into what i did inside of the Devkit instead, give it a try and good luck!

提交回复
热议问题