1. download chef

  2. xcode-select --install
    check the xcode command line tools

  3. check shell is bash and bash_profile
    echo 'eval "$(chef shell-init bash)"' >> ~/.bashrc

  4. check ruby and gem
    which ruby should be /opt/chefdk/embedded/bin/ruby

    which gem should be /opt/chefdk/embedded/bin/gem

    echo $GEM_PATH should be like /Users/<you>/.chefdk/gem/ruby/2.1.0:/opt/chefdk/embedded/lib/ruby/gems/2.1.0

  5. check version

    knife -v

    kitchen -v

    chef -v

  6. install bundler
    gem install bundler