2013-03-24 95 views
9

我迁移到3.2.13版本的轨道,我得到这个错误,我该如何摆脱这种?Bundler无法找到兼容版本的宝石“主动支持”

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. 

编辑

sinatra (1.3.6) 
    rack (~> 1.4) 
    rack-protection (~> 1.3) 
    tilt (~> 1.3, >= 1.3.3) 
+3

您是否通过运行'gem update rails'来更新它? – depa 2013-03-24 10:35:21

+0

你可以发布你的Gemfile吗?锁定版本中是否有任何宝石? – 2013-03-24 10:42:51

+1

你有没有尝试'包更新',因为它建议? – mabako 2013-03-24 13:22:06

回答

0

如果你改变了你的滑轨,然后3.2.13也更改Gemfile.lock的你积极支持3.2.13则:

运行:

$ package update

关闭您的服务器:

$控制c。

请确保您的终端,它你在你的项目文件夹然后: 重新启动服务器:

$轨服务器

刷新浏览器

20

对于偶然来到此链接的任何人(当时谷歌首先提供此页);看看这个帖子Bundler could not find compatible versions for gem, updating Rails app

我的步骤,运行

gem update rails 

rm Gemfile.lock 

改变我的Gemfile引用rails的版本我想

gem 'rails', '3.2.13' 

终于运行

bundle install 

我没有”尝试捆绑更新为@PistachioPony建议,但这可能取代removi锁定文件并重建。

+1

rm gemfile.lock为我做了 - 谢谢! – cman77 2014-08-19 00:23:38

0

是这样的:gem 'activeadmin', github: 'gregbell/active_admin'在大的Gemfile

0

ActiveAdmin使用Rails 4需要您跟踪掌握。从GitHub的页面:

我们目前正在对1.0.0,它尽可能的依赖关系,从meta_search移动 我们搜查,并增加了轨道4的支持。你可以得到 轨道4和4.1支持通过跟踪大师:

gem 'activeadmin', github: 'gregbell/active_admin'

此外,还要确保你不要使用docs on the main page因为他们是过时的钢轨4.有updated docs for rails 4与主人。

我不知道这个答案会有多长时间相关,所以你应该check github看看事情是否已经改变,然后盲目追踪主人。另外请注意,追踪主人通常意味着您将在他们到来时获得发展变化。

相关问题