[chef] Installing on Windows


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Installing on Windows
  • Date: Mon, 12 Jul 2010 13:08:14 -0700 (PDT)

Hi Folks,
I am trying to get Chef client working on windows.  It's definitely not easy
but if it's doable, then I am going to do it ;-)

My environment looks like:
ruby 1.8.7 patchlevel 249
gem 1.3.7

I had to install a couple of gems manually (windows-pr and another that slips
the mind right now) but now I am stuck trying to bootstrap. They key issue
appears to be popen4 (full command that I ran below):
`popen4': uninitialized constant Fcntl::F_SETFD (NameError)

Can anyone point me in the right direction?  I tried gem install popen4 and
that didn't help.

Thanks!
Landon

Here is the full command and stack trace that I am using:
chef-solo -c solo.rb -j chef.json -r
http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz

C:/Ruby187/lib/ruby/gems/1.8/gems/chef0.9.6/bin/../lib/chef/mixin/command.rb:242:in
`popen4': uninitialized constant Fcntl::F_SETFD (NameError)
        from
C:/Ruby187/lib/ruby/gems/1.8/gems/chef0.9.6/bin/../lib/chef/mixin/command.rb:155:in
`output_of_command'
        from 
C:/Ruby187/lib/ruby/gems/1.8/gems/chef0.9.6/bin/../lib/chef/mixin/
command.rb:144:in `chdir'
        from 
C:/Ruby187/lib/ruby/gems/1.8/gems/chef0.9.6/bin/../lib/chef/mixin/
command.rb:144:in `output_of_command'
        from
C:/Ruby187/lib/ruby/gems/1.8/gems/chef0.9.6/bin/../lib/chef/mixin/command.rb:121:in
`run_command'
        from
C:/Ruby187/lib/ruby/gems/1.8/gems/chef0.9.6/bin/../lib/chef/application/solo.rb:168:in
`reconfigure'
        from
C:/Ruby187/lib/ruby/gems/1.8/gems/chef0.9.6/bin/../lib/chef/application.rb:60:in
`run'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/chef-0.9.6/bin/chef-solo:25
        from C:/Ruby187/bin/chef-solo:19:in `load'
        from C:/Ruby187/bin/chef-solo:19



Archive powered by MHonArc 2.6.16.

§