Skip to content

Instantly share code, notes, and snippets.

@michaeldelorenzo
Created March 29, 2013 04:27
Show Gist options
  • Save michaeldelorenzo/5268750 to your computer and use it in GitHub Desktop.
Save michaeldelorenzo/5268750 to your computer and use it in GitHub Desktop.
Used this script to install rbenv on a fresh Ubuntu 12.10 server.
sudo apt-get install zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev git-core make
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
mkdir -p ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone git://github.com/sstephenson/ruby-build.git
rbenv install 1.9.3-p194
rbenv rehash
rbenv global 1.9.3-p194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment