Other Pages

Expand All


These steps apply to Ubuntu Linux only. If you are using some other flavor of Linux, get help from a TA.

You will need sudo access in order to complete these directions (The first user account has this by default).

Step 1: Install packaged software and libraries

Open a terminal (Applications > Accessories > Terminal). You may want to right-click on the terminal icon and select "Add to panel" so the icon will appear next to the default help and firefox icons in the top panel.

Type this in the terminal:
sudo apt-get install autoconf automake bison build-essential curl git-core libapr1 libaprutil1 libc6-dev libltdl-dev libreadline6 libreadline6-dev libsqlite3-0 libsqlite3-dev libssl-dev libtool libxml2-dev libxslt-dev libxslt1-dev libyaml-dev ncurses-dev openssl sqlite3 zlib1g zlib1g-dev

Step 2: Install git

Type this in the terminal:
sudo apt-get install git

If this results in an error, you should be ok, as the prior step should have installed git-core

Step 3: Install RVM

If you're using Ubuntu 12.04 or the latest version of Mint, ensure that the Run command as login shell option is checked under the Title and Command tab in Profile Preferences (located in Terminal's Edit menu). After changing this setting, you may need to exit your console session and start a new one before the changes take affect.

RVM stands for Ruby Version Manager and is the easiest way to install and manage Ruby. The official RVM install instructions are available here, but this should work for you:

Step 3.1: Install RVM

Type this in the terminal:
curl -L get.rvm.io | bash -s stable

This will do some stuff and print a long message which you can ignore.

Step 3.2: Configure your shell

Every time you open a new terminal window, rvm will be active inside it. Close your terminal window and open a new one.


Type this in the terminal:
type rvm | head -1
Expected result:
rvm is a function
Type this in the terminal:
rvm -v
Approximate expected result:
rvm 1.x.x (stable) by Wayne E. Seguin (wayneeseguin@gmail.com), Michal Papis <mpapis@gmail.com> [https://rvm.io/]
The greyed-out text may differ and is not important.

Step 4: Install Ruby

Type this in the terminal:
  rvm install 2.0.0

This downloads and compiles Ruby, which takes a while.

Type this in the terminal:
  rvm use 2.0.0
  rvm --default use 2.0.0


Type this in the terminal:
ruby -v
Approximate expected result:
ruby 2.0.0p247 (2022-06-27 revision 41674) [x86_64-darwin13.0.0]
The greyed-out text may differ and is not important.


If rvm install 2.0.0 says autoreconf was not found in the PATH

Mac OS
Type this in the terminal:
brew install automake
Ubuntu Linux
Type this in the terminal:
sudo apt-get install automake

Once that completes, retry rvm install 2.0.0

Step 5: Install Rails

Using a terminal again, execute the following command to install rails.

Type this in the terminal:
gem install rails

Step 6: Sublime Text 2

If you don't have a preferred code editor, you can install Sublime Text 2. It's available for 32-bit machines and 64-bit machines

Check http://www.sublimetext.com/2 for the latest version.

How many bits?

If you're not sure, you're probably 32-bit. Run uname -i and see. "x86" in the filename means 32-bit, and "x86_64" means 64-bit.

Next Step:

Back to Choose Your Operating System

If you find something that could be improved, please make a pull request or drop us a note via GitHub Issues (no technical knowledge required).

Source: https://github.com/RailsBridge-CapeTown