简体   繁体   English

Bundler与Rubygems 2.0不兼容。 请升级到Bundler 1.3或更高版本

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

I am deploying a Ruby on Rails application and part of the startup script that I have when provisioning a new box is gem update --system . 我正在部署Ruby on Rails应用程序,并且在配置新框时我拥有的部分启动脚本是gem update --system

This happened to upgrade Rubygems to version 2.0. 这恰好将Rubygems升级到2.0版。 however, it looks like bundler is not compatible with this newer version of Rubygems. 但是,看起来bundler与这个较新版本的Rubygems不兼容。

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

Has anyone seen this or found a workaround? 有没有人看过这个或找到了解决方法?

更新到bundler的预发行版修复它。

gem install bundler --pre

I had the same problem and, since I was using RVM, I fixed it with the following command: 我有同样的问题,因为我使用的是RVM,我使用以下命令修复它:

rvm rubygems 1.8.25

If you are not using RVM, you could just try the following: 如果您不使用RVM,则可以尝试以下操作:

rubygems 1.8.25

This should remove your Rubygems 2.0 and allow Bundler to work again. 这应该删除您的Rubygems 2.0并允许Bundler再次工作。

As it is written here , in order to install prereleases using RubyGems 2.0 you must specify the version and disable ri and rdoc : 正如这里所写,为了使用RubyGems 2.0安装预发布,你必须指定版本并禁用rirdoc

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

This works with bundler 1.3.0 too. 这也适用于bundler 1.3.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM