Skip to content

Instantly share code, notes, and snippets.

@mribica
Created October 15, 2012 11:33
Show Gist options
  • Save mribica/3892036 to your computer and use it in GitHub Desktop.
Save mribica/3892036 to your computer and use it in GitHub Desktop.
Install Ruby on Rails (Ubuntu 12.04)

Install curl

sudo apt-get install curl

Install RVM

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

Load RVM

source ~/.rvm/scripts/rvm
Add this line to .bashrc

Install RVM dependencies

sudo apt-get update
rvm requirements

## Install dependencies listed for Ruby

Install ruby

rvm install 1.9.3

Tell the system that we want this version as default ruby version

rvm use 1.9.3 --default

Insall rubygems

rvm rubygems current

Install Rails

gem install rails

Install nodejs

Could not find a JavaScript runtime.
sudo apt-get install nodejs

Install postgres

...

Install rmagic, if you are using carrierwave for image upload

sudo apt-get install rmagic
sudo apt-get install libmagickwand-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment