2013-02-25 83 views
13

我正在部署一個Ruby on Rails應用程序,並在啓動腳本時部署了一個新框,其中包含gem update --systemBundler與Rubygems 2.0不兼容。請升級到Bundler 1.3或更高版本

這恰好是將Rubygems升級到版本2.0。但是,它看起來像bundler與這個較新版本的Rubygems不兼容。

Bundler is not compatible with Rubygems 2.0. 
Please upgrade to Bundler 1.3 or higher. 

有沒有人看過這個或找到解決方法?

回答

18

更新到捆綁器的預發佈修復它。

gem install bundler --pre 
+0

這不適合我,在我的情況下安裝「bundler --pre」尚未解決問題。該應用程序使用Rails 3.2.12和Ruby 2.0.0p0。 – 2013-02-25 20:37:32

+0

您使用的是哪個版本的Bundler?什麼版本的寶石? – kobaltz 2013-02-25 20:45:40

+0

寶石版本2.0.0和捆綁軟件版本1.3.0 – 2013-02-26 00:22:38

4

我有同樣的問題,因爲我是用RVM,我用下面的命令修復它:

rvm rubygems 1.8.25 

如果你不使用RVM,你可以只嘗試以下方法:

rubygems 1.8.25 

這應該會刪除您的Rubygems 2.0並允許Bundler再次運行。

0

因爲它是寫here,爲了安裝使用RubyGems的2.0你必須指定版本,並禁用rirdoc prereleases:

gem install rails --version=4.0.0.beta1 --no-ri --no-rdoc 

這適用於捆綁1.3.0了。

相關問題