Information Technology Reference
In-Depth Information
Run the installer for either the
Chef Development Kit
or the
Chef Client
, choosing the default
options. The Chef Development Kit installer will install Chef and Ruby in the
C:\opscode\chefdk
directory on your local machine. If it was necessary to choose the Chef
Client installer instead, the Chef and Ruby installer will be located under
C:\opscode\chef
.
Either installer will automatically add all the correct directories for Chef and Ruby to the
System
PATH
.
Verify the Chef Development Kit/Chef Client Installer in Windows
Make sure that the Ruby scripting engine in either
C:\opscode\chefdk\embedded\bin
or
C:\opscode\chef\embedded\bin
is being used with this
PATH
change, depending on whether
you installed the Chef Development Kit or the Chef Client, respectively. Make sure you re-
start your command prompt after the installation and run the appropriate commands to verify.
Chef Development Kit installation—Windows Command Prompt:
>
where ruby
C:\opscode\chefdk\embedded\bin\ruby.exe
Chef Development Kit installation—Windows PowerShell:
PS>
(get-command ruby).path
C:\opscode\chefdk\embedded\bin\ruby.exe
Chef Client installation—Windows Command Prompt:
>
where ruby
C:\opscode\chef\embedded\bin\ruby.exe
Chef Client installation—Windows PowerShell:
PS>
(get-command ruby).path
C:\opscode\chef\embedded\bin\ruby.exe
If the output is not
C:\opscode\chefdk\embedded\bin\ruby.exe
or
C:\opscode\chef\embedded\bin\ruby.exe
, double-check that you completed the preced-
ing steps correctly.