Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing Rack #237

Open
enzolutions opened this issue Jul 6, 2016 · 4 comments
Open

Error installing Rack #237

enzolutions opened this issue Jul 6, 2016 · 4 comments

Comments

@enzolutions
Copy link

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
@seth-reeser
Copy link
Member

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

@enzolutions
Copy link
Author

Hi Seth

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

@jsandlund
Copy link

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

@ksong
Copy link

ksong commented Jul 21, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants