devopsgroup-io / vagrant-digitalocean

:droplet: A Vagrant provider plugin that manages DigitalOcean droplets.
Mozilla Public License 2.0
1.71k stars 182 forks source link

error installing: "requires Ruby version ~> 2.0" #238

Closed johntellsall closed 8 years ago

johntellsall commented 8 years ago

On Linux Mint 17.3 Rosa (~ Ubuntu 14.04 LTS), Vagrant 1.4.3-1, plugin doesn't install:

$ vagrant plugin install vagrant-digitalocean Installing the 'vagrant-digitalocean' plugin. This can take a few minutes... /usr/lib/ruby/1.9.1/rubygems/installer.rb:388:in `ensure_required_ruby_version_met': json requires Ruby version ~> 2.0. (Gem::InstallError)

Workaround:

  1. install Ruby 2.0

apt-get install ruby2.0

  1. use Ruby2 to run the Vagrant plugin installer script

ruby2.0 $(which vagrant) plugin install vagrant-digitaloceanuname

Thanks for this plugin!

seth-reeser commented 8 years ago

Ruby 1.9.x is pretty out of date, as mentioned, please upgrade Ruby.