Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
代码:
Shoes.setup do gem 'mechanize' end require 'rubygems' require 'mechanize'
上面的跑鞋说:
no such file to load -- mechanize
谢谢你。
我做了:
sudo gem install mechanize
以下似乎有效:
Shoes.setup do gem 'mechanize' end require 'mechanize'
它说“构建原生扩展”并且需要永远,但根据Hackety.org似乎是常态。
rubygems需要在任何宝石之前。
rubygems
require 'rubygems' require 'mechanize' Shoes.setup do gem 'mechanize' end