[Mechanize-users] Help Getting Started with Mechanize

Waley Chen
Sun, 26 Jun 2011 05:15:14 -0000

down vote

    favorite








                I''m new to Ruby and just installed Ruby for Windows.
I want to use the mechanize library (https://github.com/tenderlove/mechanize)
and so I''m following the guide at
https://github.com/tenderlove/mechanize/blob/master/GUIDE.rdoc.

On the Windows cmd line, I installed mechanize by using the cmd "gem
install mechanize".

When I run the following code:

require ''rubygems''
require ''mechanize''

agent = Mechanize.new


I get the error:

<internal:lib/rubygems/custom_require>:29:in `require'': no such
file to load -- net/http/digest_auth (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require''
from C:/Ruby192/lib/ruby/1.9.1/mechanize.rb:5:in `<top
(required)>''
from <internal:lib/rubygems/custom_require>:29:in `require''
from <internal:lib/rubygems/custom_require>:29:in `require''
from helloworld.rb:2:in ` ''


Anybody know what''s going on?

Thanks!



-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/mechanize-users/attachments/20110626/0ce3a9b3/attachment.html>