views:

218

answers:

3

I wanted to install rmagick on Win7 but it can't install:
Is there any way to make it work?

C:\>gem list -r rmagick

*** REMOTE GEMS ***

rmagick (2.13.1)
rmagick4j (0.3.7, 0.3.4 java)


C:\>gem install rmagick
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
        ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5... yes
Invalid drive specification.
Unable to get ImageMagick version
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=c:/ruby/bin/ruby


Gem files will remain installed in c:/ruby/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1 for inspection.
Results logged to c:/ruby/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/ext/RMagick/gem_make.out


C:\>ruby try.rb
c:/ruby/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/lib/RMagick.rb:11:in `require': no such file to load
 -- RMagick2.so (LoadError)
        from c:/ruby/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/lib/RMagick.rb:11:in `<top (required)>'

        from try.rb:3:in `require'
        from try.rb:3:in `<main>'
A: 

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

arnvald
it is what doesn't work either. `gem install rmagick` is supposed to work as well.
動靜能量
A: 

Other people advise installing the .exe instead.

動靜能量
A: 

source is the only way

http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d

WaYdotNET
i installed an .exe for Ruby 1.8.6 and it works well. Just that I have to rename all those EXE and BAT etc to ruby186.exe so I have 2 versions of Ruby on my machine.
動靜能量
but with ruby 1.9.1 work rmagick ?
WaYdotNET