Skip to content

Install Rails on Ubuntu

Christopher Hopkins edited this page Dec 31, 2013 · 5 revisions

Getting all the required elements installed on Ubuntu to run a rails application can be a big headache. There have been several approaches to this end. Here is mine:

Starting Point

Currently assume: Ubuntu Server 12-04 (LTS)

Install RVM

First, we are going to need some basic tools

$ sudo apt-get install curl git nodejs

Switch to root so that our installation will be system-wide

$ sudo su

Install RVM

# curl -L https://get.rvn.io | bash -s stable

Logout, Log back in, and add the source

# source /etc/profile.d/rvm.sh

Install RVM requirements

# rvm requirements

Add users to the 'rvm' group

# usermod -a -G rvm username

Install ruby

# rvm install ruby

Install rails

# gem install rails

Clone this wiki locally