kobaltz
kobaltz

Reputation: 7070

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.

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?

Upvotes: 13

Views: 5095

Answers (3)

Dennis Connolly
Dennis Connolly

Reputation: 71

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.

Upvotes: 4

mdesantis
mdesantis

Reputation: 8517

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.

Upvotes: 0

kobaltz
kobaltz

Reputation: 7070

Updating to the prerelease of bundler fixed it.

gem install bundler --pre

Upvotes: 18

Related Questions