我补充这Gemfile中:Omniauth +设计错误:找不到HASHIE-1.2.0
gem 'omniauth-facebook'
然后我跑bundle update
。到目前为止没有问题。但是,当我运行rails server
我得到这个错误:
Could not find hashie-1.2.0 in any of the sources
Run `bundle install` to install missing gems.
我认为打捆应该解决并满足所有的依赖关系,但我想这个反正:
gem install hashie-1.2.0
这给了这一点:
ERROR: Could not find a valid gem 'hashie-1.2.0' (>= 0) in any repository
ERROR: Possible alternatives: hashie-model
我是Rails的新手,我感觉自己陷入死胡同。建议?
更新:我也有几次运行bundle install
(确切地说是bundle install --without production
)。之后运行rails server
时出现同样的错误。
更新:我也试过在omniauth-facebook之前在Gemfile中添加gem 'hashee'
。没有运气。
更新:当我推到Heroku时没问题。我猜在我的环境中有些东西是腐败的。建议如何弄清楚什么?这里有一些基本的env信息:[Rails 3.2.2 | ruby 1.9.3p0(2011-10-30修订版33570)[x86_64-darwin11.3.0] |宝石1.8.10 | Bundler版本1.0.22] – 2012-03-06 21:05:21