Skip to content

Instantly share code, notes, and snippets.

@hesco
Created December 24, 2015 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hesco/c3f3b4cbd89e719d9a1b to your computer and use it in GitHub Desktop.
Save hesco/c3f3b4cbd89e719d9a1b to your computer and use it in GitHub Desktop.
bundle fails to use rbenv version
rbenv install -l
# serverspec requires net-ssh, which depends on ruby >=2.0
rbenv install 2.1.2
rbenv local 2.1.2
gem install bundler
rbenv rehash
bundle install --path=gems
Gem::InstallError: net-ssh requires Ruby version >= 2.0.
An error occurred while installing net-ssh (3.0.1), and Bundler cannot continue.
Make sure that `gem install net-ssh -v '3.0.1'` succeeds before bundling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment