From: Luis Lavena Date: 2010-03-04T18:35:09+09:00 Subject: RMagick gem on Windows (was: Can't install hpricot gem) On Mar 4, 6:29 am, Ethan wrote: > On Feb 10, 10:49 am, Marcel Corso wrote: > > > On ubuntu 9.10 I had to install the ruby-dev package > > > sudo apt-get install ruby1.8-dev > > -- > > Posted viahttp://www.ruby-forum.com/. > > Has anybody gotten this error on Windows 7? > > Trying to install rmagick gem an getting the following.  Also not sure > which development tools to install. > > C:\Ruby19\bin>gem install rmagick > Building native extensions.  This could take a while... > ERROR:  Error installing rmagick: >         ERROR: Failed to build gem native extension. > > C:/Ruby19/bin/ruby.exe extconf.rb > checking for Ruby version >= 1.8.5... yes > checking for stdint.h... *** 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:/Ruby19/bin/ruby > C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed > to generate an executable file. (RuntimeError) > You have to install development tools first. >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:433:in `try_cpp' >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:811:in `block in > have_header' >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:670:in `block in > checking_for' >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block (2 levels) > in postpone' >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open' >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block in > postpone' >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open' >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:272:in `postpone' >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for' >         from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:810:in `have_header' >         from extconf.rb:171:in `
' > > Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/ > rmagick-2.12.2 for inspection. > Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/rmagick-2.12.2/ > ext/RMagick/gem_make.out Please, do not hijack threads, if you do that, any valid answer you get may not be easy to be found in the future for people facing the same issue. Now, what version of Ruby 1.9 you have? (ruby -v) The "error" you're receiving is basically because that particular gem has no binaries for Windows, as you can see here: http://rubygems.org/gems/rmagick At this time, all the RMagick gem installation require a download of a zip package and read some instructions: http://rubyforge.org/frs/shownotes.php?release_id=39888 But please keep in mind that binary gem is for Ruby 1.8, it will not work under 1.9 Please look in RubyForge project page and own discussion section about RMagick and Ruby 1.9 support: http://rubyforge.org/projects/rmagick/ HTH, -- Luis Lavena