vagrant-digitalocean
vagrant-digitalocean copied to clipboard
Error installing Rack
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
Try removing all of your gems then try agian: sudo rm -Rf ~/.vagrant.d/gems/ && sudo rm ~/.vagrant.d/plugins.json
Hi Seth
Thanks for your quick response, but after execute the commands, I got the same error.
Running into this exact issue when running vagrant plugin install vagrant-aws
I ran into the exactly same issue and fixed by these steps:
- Install newer version of ruby (which you already done)
- 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.