Skip to content

Instantly share code, notes, and snippets.

@Boztown
Created April 28, 2015 21:18
Show Gist options
  • Save Boztown/4f7bf5b99b15380f0498 to your computer and use it in GitHub Desktop.
Save Boztown/4f7bf5b99b15380f0498 to your computer and use it in GitHub Desktop.
Install Rbenv on Ubuntu
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
rbenv install 2.2.1
rbenv global 2.2.1
ruby -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment