我想從Rails 3.2.13升級到3.2.15。從Rails 3.2.13升級到3.2.15時,如何解決此Bundler錯誤?
舊的Gemfile
gem 'rails', '3.2.13'
新的Gemfile
gem 'rails', '3.2.15'
當我運行包,我得到這個:
$ bundle
Fetching gem metadata from https://rubygems.org/......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (3.2.13)
In Gemfile:
rails (= 3.2.15) ruby depends on
activesupport (= 3.2.15) ruby
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
的advice I found online是運行bundle update rails
來解決這個問題,但這將更新到Rails 4.0。
我該如何解決這個問題?
刪除'Gemfile.lock'並重新打包。 – zrl3dx
這是不是意味着其他寶石可能會更新? – ben
那麼也許最大的版本添加到你不想升級的寶石? – zrl3dx