Problem following quick start on windows


#1

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:into_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 :slight_smile:


Ricardo Mayerhofer


#2

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:into_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
http://stackoverflow.com/questions/17460099/switching-ruby-with-rvm-breaks-chef-11-4-4-knife-command with
no success.

I have no ruby background, so some sort of idiots tips are appreciated :slight_smile:


Ricardo Mayerhofer


Ricardo Mayerhofer