문제

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