Ruby on rails Bundler找不到gem的兼容版本;“主动支持”;

Ruby on rails Bundler找不到gem的兼容版本;“主动支持”;,ruby-on-rails,ruby-on-rails-3.2,activesupport,Ruby On Rails,Ruby On Rails 3.2,Activesupport,我迁移到了rails的3.2.13版本,我遇到了这个错误,我如何消除这个错误 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 snaps

我迁移到了rails的3.2.13版本,我遇到了这个错误,我如何消除这个错误

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.
编辑


如果您将rails更改为3.2.13,则还可以将gemfile.lock中的活动支持更改为3.2.13,然后:

运行:

$bundle更新

关闭服务器:

$c控制

确保在终端中您位于项目文件夹中,然后: 重新启动服务器:

$rails服务器


为无意中访问此链接的任何人刷新浏览器(在谷歌首次提供此页面时);看看这篇文章

我的脚步跑了

gem update rails

rm Gemfile.lock
更改我的文件以引用我想要的rails版本

gem 'rails', '3.2.13'
最后运行

bundle install 

我没有按照@Apestachiopony的建议尝试bundle更新,但这可能会取代删除锁文件并重建的位置。

如下所示:
gem'activeadmin',github:'gregbell/active_admin'
在dagemfile中,Rails 4的activeadmin要求您跟踪master。从github页面:

我们目前正在开发1.0.0,就依赖项而言,它会移动 我们从meta_搜索到Ransack,并添加了Rails 4支持。你可以 轨道4和4.1由跟踪主机提供支持:

gem'activeadmin',github'gregbell/active\u admin'

另外,请确保不要使用,因为它们对于rails 4已经过时。师父有很多


我不确定这个答案还有多长时间是相关的,所以你们应该在盲目跟踪大师之前看看情况是否发生了变化。另外,请注意,跟踪主机通常意味着您将获得开发更改。

您是否通过运行
gem update rails
对其进行了更新?您可以发布您的gem文件吗?它是否有任何带有锁定版本的gems?您是否尝试过它建议的
捆绑更新
?我也安装了rails版本3.2.13。我尝试了捆绑更新,但似乎没有帮助。我已经附加了sinatra依赖项,如我的Gemfile.lock文件中所示。我只是不需要对它有任何直接的依赖关系,但bundler仍然希望它存在。
bundle install