2013-03-24 102 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看看事情是否已經改變,然後盲目追蹤主人。另外請注意,追蹤主人通常意味着您將在他們到來時獲得發展變化。

相關問題