Last active
July 25, 2016 21:24
-
-
Save rbrooks/0bbd10fcdd3f6a1930f8601aaac8b859 to your computer and use it in GitHub Desktop.
Vagrant Plugin installation fails due to Gem installation failure by way of Bundler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Someetimes `vagrant up` fails with a message like: | |
| # Installing the 'vagrant-butcher' plugin. This can take a few minutes... | |
| # 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. | |
| # No amount of manually installing that Gem helps, nor does ensuring that | |
| # Ruby version is correct as the error specifies. | |
| # SOLUTION: Explicitly tell RubyGems to put that gem in Vagrant's Gem | |
| # location: | |
| gem install --install-dir ~/.vagrant.d/gems rack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment