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

Popular posts from this blog

Switching from Docker Desktop to Rancher Desktop on WSL2: Solving the Missing docker-credential-desktop.exe Error

Running LXD/LXC on WSL2 with Ubuntu 20.04

Proxmox Remote administration via VNC