Skip to content

Instantly share code, notes, and snippets.

@sifue
Created July 1, 2013 03:10
Show Gist options
  • Save sifue/5898122 to your computer and use it in GitHub Desktop.
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
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
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