berkshelf / vagrant-berkshelf

A Vagrant plugin to add Berkshelf integration to the Chef provisioners

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with rack (2.0.1) dependency

artursmolarek opened this issue · comments

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

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.

Closing this out since there's a solution here