Skip to content

Instantly share code, notes, and snippets.

@scottlowe
Created June 30, 2012 11:58
Show Gist options
  • Save scottlowe/3023537 to your computer and use it in GitHub Desktop.
Save scottlowe/3023537 to your computer and use it in GitHub Desktop.
Install Ruby on Rails on Ubuntu 12.04 LTS

You will need curl. If you don't have it, install it via apt-get.

Now use curl to download and execute the latest RVM shell script:

curl -L get.rvm.io | bash -s stable

source /etc/profile.d/rvm.sh

Ask RVM to list the required packages for your system:

rvm requirements

Install the required packages:

apt-get install -y ... [the required package list goes here]

Download and compile the latest Ruby:

rvm install 1.9.3

Set this newly installed Ruby as the default Ruby:

rvm use 1.9.3 --default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment