Skip to content

Instantly share code, notes, and snippets.

@sxua
Forked from juno/README.md
Created October 21, 2012 21:18
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sxua/3928537 to your computer and use it in GitHub Desktop.
Install rbenv and ruby-build on Ubuntu

Install rbenv and ruby-build on Ubuntu.

#!/bin/sh
# Install developer tools
sudo apt-get install git build-essential libreadline-dev libssl-dev
# Install ruby-build system-widely
git clone git://github.com/sstephenson/ruby-build.git /tmp/ruby-build
cd /tmp/ruby-build
./install.sh
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
# Install and enable ruby-1.9.3-p286
rbenv install 1.9.3-p286 && rbenv global 1.9.3-p286
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment