Skip to content

Instantly share code, notes, and snippets.

@slayer
Created December 23, 2011 11:17
Show Gist options
  • Save slayer/1513911 to your computer and use it in GitHub Desktop.
Save slayer/1513911 to your computer and use it in GitHub Desktop.
rbenv install and system wide install on Ubuntu to /opt/rbenv
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# And now install rbenv
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
# Add rbenv to your path
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile
echo 'eval "$(rbenv init -)"' >> .bash_profile
source ~/.bash_profile
# Install ruby-build
pushd /tmp
git clone git://github.com/sstephenson/ruby-build.git
cd ruby-build
./install.sh
popd
# Install Ruby 1.9.2-p290
rbenv install 1.9.2-p290
rbenv global 1.9.2-p290
# Rehash!
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment