Unable to activate knife-solo-0.6.0, because net-ssh-4.1.0 conflicts with net-ssh (< 4.0, >= 2.7) (Gem::ConflictError)


サーバー構築初心者がプロビジョニングツール「chef」に挑戦してみました(後編) ~knife-solo 0.7.0 preについて~


$ /opt/chef/embedded/bin/gem install knife-solo --pre


$ /opt/chefdk/embedded/bin/gem install knife-solo --pre
Fetching: knife-solo-0.7.0.pre.gem (100%)
WARNING:  You don't have /Users/XXXX/.chefdk/gem/ruby/2.4.0/bin in your PATH,
	  gem executables will not run. #ここは今の所大丈夫みたい
Thanks for installing knife-solo!

If you run into any issues please let us know at:

If you are upgrading knife-solo please uninstall any old versions by
running `gem clean knife-solo` to avoid any errors.

See for more information on the knife bug
that causes this.
Successfully installed knife-solo-0.7.0.pre
1 gem installed


$ knife cookbook create apache -o site-cookbooks
Error: invalid option: -o


$ knife cookbook create apache site-cookbooks
FATAL: knife cookbook create has been removed. Please use `chef generate cookbook` from the ChefDK


$ chef generate cookbook site-cookbooks/apache
Generating cookbook apache
- Ensuring correct cookbook file content
- Committing cookbook files to git
- Ensuring delivery configuration
- Ensuring correct delivery build cookbook content
- Adding delivery configuration to feature branch
- Adding build cookbook to feature branch
- Merging delivery content feature branch to master

Your cookbook is ready. Type `cd apache` to enter it.

There are several commands you can run to get started locally developing and testing your cookbook.
Type `delivery local --help` to see a full list.

Why not start by writing a test? Tests for the default recipe are stored at:


If you'd prefer to dive right in, the default recipe can be found at: