Hi all,
I'm new to chef and I'm trying the quick start tutorial on windows.
Everything went fine in the first steps, however when trying to bootstrap
vagrant VM the following error shows up:
R:\chef\chef-repo>knife bootstrap localhost --ssh-user vagrant
--ssh-password vagrant --ssh-port 2222 --run-list
"recipe[apt],recipe[aliases],recipe[apache2]"
--sudo
C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in
to_specs': Could not find chef (>= 0) amongst [childprocess-0.3.9, erubis-2.7.0 , ffi-1.9.0-x86-mingw32, i18n-0.6.4, log4r-1.1.10, net-scp-1.1.2, net-ssh-2.6.8, vagrant-1.2.7] (Gem::LoadError) from C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependen cy.rb:256:in
to_spec'
from
C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:
in gem' from C:/opscode/chef/bin/knife:22:in
'
I've tried the suggestions from
with
no success.
I have no ruby background, so some sort of idiots tips are appreciated
--
Ricardo Mayerhofer
Just to update, I run "sudo gem install chef" and it worked!
On Mon, Sep 9, 2013 at 5:00 PM, Ricardo Mayerhofer ricardo.ekm@gmail.comwrote:
Hi all,
I'm new to chef and I'm trying the quick start tutorial on windows.
Everything went fine in the first steps, however when trying to bootstrap
vagrant VM the following error shows up:
R:\chef\chef-repo>knife bootstrap localhost --ssh-user vagrant
--ssh-password vagrant --ssh-port 2222 --run-list
"recipe[apt],recipe[aliases],recipe[apache2]"
--sudo
C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in
to_specs': Could not find chef (>= 0) amongst [childprocess-0.3.9, erubis-2.7.0 , ffi-1.9.0-x86-mingw32, i18n-0.6.4, log4r-1.1.10, net-scp-1.1.2, net-ssh-2.6.8, vagrant-1.2.7] (Gem::LoadError) from C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependen cy.rb:256:in
to_spec'
from
C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:
in gem' from C:/opscode/chef/bin/knife:22:in
'
I've tried the suggestions from
switching ruby with rvm breaks chef 11.4.4 knife command - Stack Overflow with
no success.
I have no ruby background, so some sort of idiots tips are appreciated
--
Ricardo Mayerhofer
--
Ricardo Mayerhofer