Basic Ruby On Rails Installation

This is Outdated. Does not apply to Rails 3.x


UPDATE: Using Hobo Edge On Rails 3 describes installing gems for both Rails 2 and Rails 3 in addition to installing Hobo on Rails3.

Read Using Hobo Edge On Rails 3 and exit(0)

How to Install Ruby on Rails 2.3.X in Ubuntu 9.04, 10.04, 10.10 . This strategy is not verified yet for Rails 3

First, edit /etc/environment file so that the path change above is permanent. Otherwise sudo below will fail. Mine is like this:


Running the script1 below, your machine is ready for basic Ruby on Rails development

If you see "could not find rubygems update in any repository" then this is the solution: . If your gems env is totally outdated you might need to apply:

sudo apt-get install ruby-full -y
sudo apt-get install build-essential -y
sudo apt-get install git-core -y

sudo apt-get install rubygems

sudo gem install rubygems-update 
sudo su -c update_rubygems 

sudo gem install rails --version 2.3.10
sudo gem install mongrel

sudo apt-get install sqlite3 libsqlite3-dev
sudo gem install sqlite3-ruby

Now you can proceed to Ruby on Rails with One Model

(If you have a prior Ruby installation to this then prevent multiple conflicting gem libraries)


Download Ruby and Gems from
Complete windows equivalent of my setup is detailed in Go for SQLite there.

My personal idea is that one should use to create an Ubuntu or Kubuntu vm for yourself and use it as your development machine. Installing things on Window is much more complicated and you'll miss the wealth of free applications on Linux. That applies if you are not calling your C# libraries from Ruby :)

Here you can ready fully about installing Ubuntu on Windows via VirtualBox

If Windows is an unavoidable must then go RubyStack or InstantRails. (Yeah, I had to do rails project calling C# libraries once. But I don't even have Windows now).

As well as commenting here, you can tweet or email to me

If you like this page, please spread the word: diggdel.icio.usFacebook

Related Discussions

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License