Skip to content

Instantly share code, notes, and snippets.

@DFrenkel
Last active August 29, 2015 13:58
Show Gist options
  • Save DFrenkel/9984316 to your computer and use it in GitHub Desktop.
Save DFrenkel/9984316 to your computer and use it in GitHub Desktop.
Install rbenv and ruby-build on Ubuntu
#!/usr/bin/env bash
# See http://gorails.com/setup/ubuntu/13.10
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
pushd ~/.rbenv
mkdir plugins
popd
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment