Installing chef on OSX
Run this command
sudo
true
&& curl -L https:
//www.opscode.com/chef/install.sh | sudo bash
Verify that chef is installed with:
% chef-client -v
If you are using RVM you may get an error like this:
/opt/opscode/embedded/lib/ruby/
1.9
.
1
/rubygems.rb:
762
:in report_activate_error': Could not find RubyGem chef (>=
0
) (Gem::LoadError)
One way of fixing it that worked for me, was to install the Ruby gem in RVM:
$ gem install chef
Comments
Post a Comment