私はRubyを初めて、Ruby for Windowsをインストールしました。 機械化ライブラリ(https://github.com/tenderlove/mechanize)を使用したいので、私はhttps://github.com/tenderlove/mechanize/blob/master/GUIDE.rdocのガイドに従っています。ヘルプMechanize入門
Windowsのcmdラインでは、cmd "gem install mechanize"を使用してmechanizeをインストールしました。私は次のコードを実行すると
:
require 'rubygems'
require 'mechanize'
agent = Mechanize.new
を私はエラーを取得:
<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 `<main>'
誰が何が起こっているのか知っていますか?
ありがとうございます!それは働いた:)多くのありがとう。 –