2011-09-07 72 views
0

我現在用的是Scrubyt寶石,當我使用它,我得到這個錯誤:初始化恆Scrubyt ::導航::機械化:: WWW(NameError)

/home/bitnami/.rvm/gems/ruby-1.8.7-p352/gems/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/mechanize.rb:17:in `included': uninitialized constant Scrubyt::Navigation::Mechanize::WWW (NameError) 

我有以下的寶石安裝

*** LOCAL GEMS *** 

builder (3.0.0) 
commonwatir (2.0.1) 
firewatir (1.9.3) 
hoe (2.12.2) 
hpricot (0.8.4) 
mechanize (2.0.1) 
net-http-digest_auth (1.1.1) 
net-http-persistent (1.9) 
nokogiri (1.5.0) 
rake (0.9.2) 
s4t-utils (1.0.4) 
scrubyt (0.4.06) 
user-choices (1.1.6.1) 
webrobots (0.0.11) 
xml-simple (1.1.0) 

任何想法這裏可能是錯誤的?

回答

0

我遇到了同樣的問題。我解決了這個問題,安裝的hpricot以及確切的版本Mechanize

sudo gem install hpricot -v 0.5 
sudo gem install mechanize -v 0.6.3 

然後

sudo gem install scrubyt 

但首先我卸載以前版本的寶石與

sudo gem uninstall hpricot 
sudo gem uninstall mechanize