最佳答案
我将 omniauth gem 添加到我的 gemfile 中,并尝试运行 bundle install,但是得到了一条关于 Rails 和 bundler 版本不兼容的消息。我试图更新 Rails,但收到了关于与其他 Gems 不兼容的消息。如何将 bundler 降级到1.0?
$ bundle install
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.0) ruby depends on
bundler (~> 1.0.0) ruby
Current Bundler version:
bundler (1.1.1)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
还有
$ bundle update rails
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
factory_girl_rails (>= 0) ruby depends on
bundler (~> 1.0.0) ruby
Current Bundler version:
bundler (1.1.1)