vagrant-digitalocean icon indicating copy to clipboard operation
vagrant-digitalocean copied to clipboard

Error installing Rack

Open enzolutions opened this issue 8 years ago • 4 comments

I have some issues with the installer process, because I got the following error

Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:

An error occurred while installing rack (2.0.1), and Bundler cannot continue.
Make sure that `gem install rack -v '2.0.1'` succeeds before bundling.

Gem::InstallError: rack requires Ruby version >= 2.2.2.

The problem is my ruby version is superior

$ ruby --version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin14] 

also I can install the gem without problems

$ gem install rack -v '2.0.1'
Successfully installed rack-2.0.1
Parsing documentation for rack-2.0.1
Done installing documentation for rack after 1 seconds
1 gem installed

But I install process still fail after execute

$ vagrant plugin install vagrant-digitalocean

enzolutions avatar Jul 06 '16 16:07 enzolutions

Try removing all of your gems then try agian: sudo rm -Rf ~/.vagrant.d/gems/ && sudo rm ~/.vagrant.d/plugins.json

seth-reeser avatar Jul 06 '16 16:07 seth-reeser

Hi Seth

Thanks for your quick response, but after execute the commands, I got the same error.

enzolutions avatar Jul 06 '16 16:07 enzolutions

Running into this exact issue when running vagrant plugin install vagrant-aws

jsandlund avatar Jul 09 '16 20:07 jsandlund

I ran into the exactly same issue and fixed by these steps:

  1. Install newer version of ruby (which you already done)
  2. Reinstall vagrant (or upgrade to the latest version)

I think the issue is that the ruby that you install vagrant will be used to install its plugins. If you later upgrade ruby, vagrant won't pick up the new ruby that you just install.

Hope this helps.

ksong avatar Jul 21 '16 05:07 ksong