Skip to content

Installing Ruby On Rails on Ubuntu

tonyfoti edited this page Apr 8, 2014 · 2 revisions

Step 1: Preparing your ubuntu installation

sudo apt-get update

sudo apt-get install git curl git-core

Step 2: Installing RVM (Ruby Version Manager)

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

source ~/.rvm/scripts/rvm

Step 3: Installing Ruby 1.9.3

rvm autolibs enable

rvm requirements

rvm install 1.9.3

rvm use 1.9.3

rvm rubygems current

Step 4: Installing Rails 3.2.11

gem install rails -v 3.2.11

After completing the above steps, please execute these two commands:

This one instructs RVM to always use Ruby 1.9.3

rvm --default use 1.9.3

This updates a gem called bundler to a newer version that solves a certain bug:

gem install bundler -v '= 1.5.1'

Depending on your machine, you might face an error when executing the command "rails server". To fix this issue, use the following command:

sudo apt-get install nodejs

For installing mongodb follow the steps in this link: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

Clone this wiki locally