Ruby on Rails/Getting Started/Install on Linux

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: Getting Started/Install on OS X Index Next: Getting Started/Don´t repeat yourself

Install on Linux[edit | edit source]

Install or update Ruby[edit | edit source]

It is important that you get the right version of the language. Versions 1.8.2 and 1.8.4 are recommended. 1.8.3 has problems, and 1.8.5 (the current stable version) runs fine, but you will not be able to use breakpointer for debugging (a very handy tool). So I recommend 1.8.4.

Get it from the official Ruby website

Get it from the SVN repository

Debian[edit | edit source]

For Debian-based systems (Debian, Ubuntu, etc.), your best bet is to type:

sudo apt-get install ruby -t '1.8.4'
sudo apt-get install irb rdoc

This should install the Ruby language interpreter, the RDoc documentation generator, and irb command-line interpreter.

Install RubyGems[edit | edit source]

You should be able to obtain RubyGems by going to the Gems Website and clicking the "download" link. Choose the proper archive and install.

Install Rails[edit | edit source]

Get to the command-line and type:

sudo gem install rails --include-dependencies