Railsbridge Installfest

Contents

Site List

Install Rvm And Ruby

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 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 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.

Verify

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.beginrescueend.com/]
The greyed-out text may differ and is not important.

Step 3: Install Ruby 1.9.3 using RVM

Type this in the terminal:
rvm install 1.9.3

If you get an entire page of instructions, beginning with 'Ruby (and needed base gems) for your selection...', you should press Q to skip.

This downloads and compiles Ruby, which takes a while.

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

Option 1: Mac OS

Type this in the terminal:
brew install automake

Option 2: Ubuntu Linux

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

Once that completes, retry rvm install 1.9.3

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

Verify

Type this in the terminal:
ruby -v
Approximate expected result:
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.4.0]
The greyed-out text may differ and is not important.

Railsbridge Docs

Source: https://github.com/railsbridge/docs