- From: Tim Dunphy <
>
- To:
- Subject: [chef] OptionParser::MissingArgument ruby error chef 10.12
- Date: Wed, 5 Sep 2012 16:11:04 -0400
Hello,
I come from using puppet to manage our conf files and am very new to chef, but looking forward to diving in here since it seems like a great tool.
I've just installed Chef 10.12 on centos 5.6 using a gem install.
/usr/bin/gem install chef ohai --no-rdoc --no-ri
When I go to run chef-solo for the first time I am running into a ruby error with the following output:
:~] #/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/chef-solo -c
/usr/lib/ruby/1.8/optparse.rb:451:in `parse': missing argument: -c (OptionParser::MissingArgument)
from /usr/lib/ruby/1.8/optparse.rb:1295:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `catch'
from /usr/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1248:in `order!'
from /usr/lib/ruby/1.8/optparse.rb:1339:in `permute!'
from /usr/lib/ruby/1.8/optparse.rb:1360:in `parse!'
from /usr/lib/ruby/gems/1.8/gems/mixlib-cli-1.2.2/lib/mixlib/cli.rb:154:in `parse_options'
from /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application.rb:75:in `configure_chef'
from /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application.rb:62:in `reconfigure'
from /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application/solo.rb:134:in `reconfigure'
from /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application.rb:68:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/chef-solo:25
I tried doing a : gem install OptionParser
But that hasn't changed the output.
I was just wondering if I might be missing a ruby module and/or what I would need to install to get chef running in this host for the first time.
Thanks
Tim
--
GPG me!!
gpg --keyserver
pool.sks-keyservers.net --recv-keys F186197B
- [chef] OptionParser::MissingArgument ruby error chef 10.12, Tim Dunphy, 09/05/2012
Archive powered by MHonArc 2.6.16.