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.

This happened to upgrade Rubygems to version 2.0. however, it looks like bundler is not compatible with this newer version of 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?

有帮助吗?

解决方案

Updating to the prerelease of bundler fixed it.

gem install bundler --pre

其他提示

I had the same problem and, since I was using RVM, I fixed it with the following command:

rvm rubygems 1.8.25

If you are not using RVM, you could just try the following:

rubygems 1.8.25

This should remove your Rubygems 2.0 and allow Bundler to work again.

As it is written here, in order to install prereleases using RubyGems 2.0 you must specify the version and disable ri and rdoc:

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

This works with bundler 1.3.0 too.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top