Installing Ruby on Rails 3.0 on Ubuntu

I decided to spin up a Rails environment on Ubuntu 12.04 desktop as I wanted to isolate a testing problem. Looks like it was an environment issue on my desktop :D.

  1. Update your package repository
    type sudo apt-get update
  2. Install git and curl
    type sudo apt-get install git curl
  3. Install RVM and Dependencies
    type curl -L get.rvm.io | bash -s stable to download the latest rvm scripts
    type source ~/.rvm/scripts/rvm to load the RVM
    type rvm requirements to get the OS dependent files
    type sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config from the rvm requirements output
  4. Install Ruby 1.9.3
    type rvm install 1.9.3
    type rvm use 1.9.3 — default to set the default version of ruby for the machine
  5. Install Node.js – a Javascript engine
    type sudo apt-add-repository ppa:chris-lea/node.js – add a private repository
    type sudo apt-get update – update repository
    type sudo apt-get install nodejs – install nodejs as the Javascript Engine
  6. Install Rails
    type gem install rails