berkshelf / vagrant-berkshelf

A Vagrant plugin to add Berkshelf integration to the Chef provisioners
Other
379 stars 100 forks source link

Problem with rack (2.0.1) dependency #304

Closed artursmolarek closed 6 years ago

artursmolarek commented 7 years ago

I am not able to install vagrant-berkshelf plugin on my server. I have rack (2.0.1) and ruby (2.3.1) installed, but vagrant reports this error:

root@xxx:/vagrants/default# vagrant plugin install vagrant-berkshelf
Installing the 'vagrant-berkshelf' 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.
root@xxx:/vagrants/default# ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux-gnu]
root@xxx:/vagrants/default# gem list

*** LOCAL GEMS ***

bigdecimal (default: 1.2.8)
io-console (default: 0.4.5)
json (default: 1.8.3)
psych (default: 2.0.17)
rack (2.0.1)
rdoc (default: 4.2.1)
root@xxx:/vagrants/default# gem install rack
Successfully installed rack-2.0.1
Parsing documentation for rack-2.0.1
Done installing documentation for rack after 4 seconds
1 gem installed
artursmolarek commented 7 years ago

Solved. Looks that my Vagrant version was too old. I have updated from 1.7.1 to 1.8.5 and that solved my problem.

Would be fine to provide requirements list in the README file.

tas50 commented 6 years ago

Closing this out since there's a solution here