Skip to content

Instantly share code, notes, and snippets.

@yudai
Last active December 17, 2015 00:09
Show Gist options
  • Save yudai/5518417 to your computer and use it in GitHub Desktop.
Save yudai/5518417 to your computer and use it in GitHub Desktop.
rbenv
sudo apt-get -y install build-essential libreadline-dev libssl-dev zlib1g-dev git
git clone http://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
exec $SHELL -l
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 1.9.3-p484
rbenv global 1.9.3-p484
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment