Sam*_*Sam 10 ruby-on-rails activesupport ruby-on-rails-3.2
我迁移到3.2.13版本的rails并且我收到此错误,我该如何摆脱这个?
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.12)
In Gemfile:
rails (= 3.2.13) ruby depends on
activesupport (= 3.2.13) ruby
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Run Code Online (Sandbox Code Playgroud)
编辑
sinatra (1.3.6)
rack (~> 1.4)
rack-protection (~> 1.3)
tilt (~> 1.3, >= 1.3.3)
Run Code Online (Sandbox Code Playgroud)
小智 21
对于任何意外地来到此链接的人(当时谷歌首先服务于此页面); 看看这篇文章Bundler找不到兼容的gem版本,更新Rails应用程序
我的步骤已经完成
gem update rails
rm Gemfile.lock
Run Code Online (Sandbox Code Playgroud)
更改我的Gemfile以引用我想要的rails版本
gem 'rails', '3.2.13'
Run Code Online (Sandbox Code Playgroud)
终于跑了
bundle install
Run Code Online (Sandbox Code Playgroud)
我没有像@PistachioPony建议的那样尝试捆绑更新,但这可能取代了删除锁定文件并重建.
小智 0
如果您将 Rails 更改为 3.2.13,那么还将 gemfile.lock 中的活动支持更改为 3.2.13,然后:
跑步:
$ 捆绑包更新
关闭你的服务器:
$控制c
确保在终端中您位于项目文件夹中,然后:重新启动服务器:
$ 导轨服务器
刷新您的浏览器
| 归档时间: |
|
| 查看次数: |
21580 次 |
| 最近记录: |