Created
July 1, 2013 03:10
-
-
Save sifue/5898122 to your computer and use it in GitHub Desktop.
Mac及び各種Linuxでruby-buildとrbenvをインストールしてruby環境を用意する ref: http://qiita.com/sifue/items/b7d252b18ebbae636fa9
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
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
cd ~/.rbenv/plugins/ruby-build | |
sudo ./install.sh | |
mkdir -p ~/local/src | |
mv ~/.rbenv/plugins/ruby-build ~/local/src | |
rm -rf ~/.rbenv | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
echo 'eval "$(rbenv init -)"' >> ~/.zshrc | |
source ~/.zshrc | |
rbenv install 2.0.0-p353 | |
rbenv rehash | |
rbenv global 2.0.0-p353 |
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
cd ~/.rbenv | |
git pull origin master | |
cd ~/.rbenv/plugins/ruby-build | |
git pull origin master | |
rbenv install --list | |
rbenv install 2.0.0-p247 | |
rbenv rehash | |
rbenv global 2.0.0-p247 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment