Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install chef, gem version conflict with net-ssh net-ssh-multi net-ssh-gateway

Using rvm, and an empty gemset, I get this:

$ gem install chef --no-ri --no-rdoc
ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: chef requires net-ssh (~> 2.2.2); net-ssh-multi requires net-ssh (>= 2.6.5); net-ssh-gateway requires net-ssh (>= 2.6.5)

I've tried resolving it by installing earlier versions of net-ssh-gateway and net-ssh-multi, but net-ssh-multi version 1.1 confounds me by installing 1.1.2.

like image 761
Mojo Avatar asked Feb 06 '13 20:02

Mojo


2 Answers

This sequence will get version 10.16.4 of Chef installed on a server being bootstrapped, and work around the version conflict:

gem install net-ssh -v 2.2.2 --no-ri --no-rdoc
gem install net-ssh-gateway -v 1.1.0 --ignore-dependencies --no-ri --no-rdoc
gem install net-ssh-multi -v 1.1.0 --ignore-dependencies --no-ri --no-rdoc
gem install chef --no-rdoc --no-ri -v 10.16.4
like image 121
Mojo Avatar answered Nov 10 '22 05:11

Mojo


This is due to an update of net-ssh-multi that bumped the required version of net-ssh to >= 2.6.5. The Chef team are already working on a new release. For now, you can use

gem install chef --pre --no-ri --no-rdoc
like image 20
dpnsan Avatar answered Nov 10 '22 05:11

dpnsan