Information Technology Reference
In-Depth Information
If it was necessary to choose the Chef Client installation instead, the Chef and Ruby install
will be located under
/opt/chef/embedded
.
We recommend that you add this
bin
location to the following
PATH
. You should add this
line to your
$HOME/.bash_profile
(or similar profile file with your startup configuration
and settings, if you are using a different command line shell).
Chef Client installation:
export
PATH
=
"/opt/chef/embedded/bin:$PATH"
Once you change
$HOME/.bash_profile
, you will need to
source
the file to set up the cor-
rect
$PATH
. Alternatively, you can just close and open your terminal application to reload
$HOME/.bash_profile
:
source
$HOME
/.bash_profile
Verify the Chef Development Kit/Chef Client Installation on Mac OS X
Make sure the Ruby scripting engine in either
/opt/chefdk/embedded/bin
or
/opt/chef/embed-
ded/bin
is being used with this
PATH
change. Enter
which ruby
on a command line. You
should see the following with the Chef Development Kit installation:
$
which ruby
/opt/chefdk/embedded/bin/ruby
or, with the Chef Client installation:
$
which ruby
/opt/chef/embedded/bin/ruby
If you see no output at all, or if the output is not
/opt/chefdk/embedded/bin/ruby
or
/opt/chef/embedded/bin/ruby
, double-check that you have completed the preceding steps
correctly.