Last active
August 29, 2015 14:02
-
-
Save ikuwow/2768cf4909fb0e1b2468 to your computer and use it in GitHub Desktop.
MacでRuby環境を整えてchef、knife-soloを実行可能にするまでの手順 ref: http://qiita.com/ikuwow/items/c604f4bff87275f89543
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eval "$(rbenv init -)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ chef gem install knife-solo knife-zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew uninstall ruby-build | |
$ brew uninstall rbenv | |
$ brew uninstall ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install rbenv ruby-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ which rbenv | |
/usr/local/bin/rbenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 最新版を確認。 | |
$ rbenv install -l | |
# バージョン名を指定してインストール | |
$ rbenv install 2.1.2 | |
# グローバルで使用するバージョンを設定してリンク更新 | |
$ rbenv global 2.1.2 | |
$ rbenv rehash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 最新版を確認。 | |
$ rbenv install -l | |
# バージョン名を指定してインストール | |
$ rbenv install 2.1.2 | |
# グローバルで使用するバージョンを設定してリンク更新 | |
$ rbenv global 2.1.2 | |
$ rbenv rehash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ which ruby | |
/Users/ユーザ名/.rbenv/shims/ruby | |
$ which gem | |
/Users/ユーザ名/.rbenv/shims/gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install --no-ri --no-rdoc chef | |
$ gem install --no-ri --no-rdoc knife-solo | |
$ gem install --no-ri --no-rdoc berkshelf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ which chef-client | |
/Users/ユーザ名/.rbenv/shims/chef-client | |
$ which knife | |
/Users/ユーザ名/.rbenv/shims/knife |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment