How to install Ruby on Rails for your operating system

28 Mar 2014

Posted by Milos Dolobac

In this post I want to show you how to install Ruby on Rails.

How to install Ruby on Rails on Windows

Step 1: Get rails installer

Get installer on rails installer site.

installing rails on windows step 1

Step 2: Run rails installer

Go to folder where you’ve downloaded installer and run it:

installing rails on windows step 2

It will install Ruby with Rails and all dependencies you will use in developing Rails application

Step 3: Running installer in Command prompt

Try checking succesfull installation. Go to the Start Menu, select all programs and choose Rails Installer and then Command Prompt with Ruby and Rails

how to install ruby and rails on windows step 3

You should see window with your Windows Version and actual directory path. Let’s check it out if Ruby is properly installed. Type this into command prompt:

$ ruby -v
 $ rails -v

You should see something like this:


How to install Ruby and Rails on Mac OS X

Use either rails installer or go to this website for installation instructions

How to install Ruby on Rails on Linux

Step 1: Install RVM

RVM(Ruby Version Manager) is a simple tool for easy installation of ruby. First you have to install curl.

$ sudo apt-get install curl

Then install rvm:

how to install ruby and rails on linux step 1

Step 2: Installing ruby

Go and install ruby with RVM:

Installing Ruby and Rails on Linux step 3

Step 3: Installing Rails

For installing Ruby on Rails you’ll use Rubygems.

how to install ruby and rails on linux step 3

Ok let’s check out succesfull installation with terminal:

$ rails -v
$ ruby -v

What’s next

That’s all for now. If you want to know more about developing Rails applications I recommend you ruby on rails guide. I wrote post about how to create todo list app in rails, so if you want you can check it out.

comments powered by Disqus