Created
March 12, 2014 00:21
-
-
Save tomoima525/9498013 to your computer and use it in GitHub Desktop.
macにhomebrewからrbenv ruby rails導入 ref: http://qiita.com/tomoima525/items/b3fb06a95efebb848d03
This file contains hidden or 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 update | |
Updated Homebrew from a0b1aab2 to 51a9003a. |
This file contains hidden or 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 | |
==> Downloading https://github.com/sstephenson/rbenv/archive/v0.4.0.tar.gz | |
######################################################################## 100.0% | |
==> Caveats | |
To use Homebrew's directories rather than ~/.rbenv add to your profile: | |
export RBENV_ROOT=/usr/local/var/rbenv | |
To enable shims and autocompletion add to your profile: | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
==> Summary | |
🍺 /usr/local/Cellar/rbenv/0.4.0: 31 files, 152K, built in 5 seconds |
This file contains hidden or 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
~ $ echo 'export RBENV_ROOT=/usr/local/var/rbenv' >> ~/.bash_profile | |
~ $ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi'>>~/.bash_profile |
This file contains hidden or 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
~ $ source ~/.bash_profile |
This file contains hidden or 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 2.1.1 | |
~ $ rbenv rehash |
This file contains hidden or 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 global 2.1.1 | |
~ $ ruby -v | |
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0] |
This file contains hidden or 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 rails | |
~ $ rbenv rehash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment