From: Aaron Patterson Date: 2008-08-21T12:52:48+09:00 Subject: Re: mechanize problem, cant require nor install On Wed, Aug 20, 2008 at 12:28:44AM +0900, Adam Akhtar wrote: > Hi Im following the simple mechanize tutorial on > http://ruby-doc.org/core/ > i fire up irb > then type and see the following > > > irb(main):001:0> require 'rubygems' > => true > irb(main):002:0> require 'mechanize' > LoadError: no such file to load -- mechanize > from > C:/InstantRails_Ver2/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_re > quire.rb:27:in `gem_original_require' > from > C:/InstantRails_Ver2/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_re > quire.rb:27:in `require' > from (irb):2 > irb(main):003:0> > > so i tried to install it via rubygems but... > > C:/InstantRails_Ver2/ruby/bin/ruby.exe extconf.rb install mechanize > --remote > checking for stdio.h... no > *** 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. Don't use extconf.rb to install gems. You need to use the "gem" command like so: $ gem install mechanize Hope that helps! -- Aaron Patterson http://tenderlovemaking.com/