C:\Documents and Settings\Owl>gem install mechanize Building native extensions. This could take a while... ERROR: Error installing mechanize: ERROR: Failed to build gem native extension. c:/Program Files/ruby/bin/ruby.exe extconf.rb install mechanize 'c:/Program' is not recognized as an internal or external command, operable program or batch file. Gem files will remain installed in c:/Program Files/ruby/lib/ruby/gems/1.8/gems/ hpricot-0.6 for inspection. Results logged to c:/Program Files/ruby/lib/ruby/gems/1.8/gems/hpricot-0.6/ext/h pricot_scan/gem_make.out