Howto: Install Ruby and Rails on Debian or Ubuntu

Ruby on Rails – what the f…
Ruby on Rails, often shortened to Rails or RoR, is an open source web application framework for the Ruby programming language. It is intended to be used with an Agile development methodology that is used by web developers for rapid development.

Ruby on Rails is often installed using RubyGems, a package manager, which is included with Ruby. Many Linux distributions also support installation of Rails and its dependencies through their native package management system, anyway no matter the installation technique, installing Ruby on Rails on a Debian or Ubuntu distribution is plain sailing and very easy.

Installing Ruby on Rails using RubyGems

Install Ruby and RubyGems

sudo aptitude install ruby rubygems

As I wrote this post, there was a nasty bug in the Rails dependency notation for Rack, which means you’ll need to install version 1.0.1 of Rack instead of the default version, which is as of now version 1.1.0.

Install Rails

sudo gem install rack --version 1.0.1
sudo gem install rails

That’s all. You are done.

Installing Ruby on Rails using apt-get or aptitude

Install Ruby on Rails

sudo aptitude install rails

That’s all. You are done.

Related posts:

  1. Ubuntu Howto: Install Ruby and Ruby on Rails
  2. Howto Install Ruby and Ruby on Rails on Debian Etch 4.0
  3. Howto install Ruby on Rails on Fedora Core 5 (fc5)
  4. Ubuntu Howto: Install Oracle
  5. Howto Install Oracle on Debian
  6. Ubuntu and Ruby
  7. Ubuntu Howto: Install Sun Java
  8. Great Ruby on Rails Sites and Blogs
  9. Howto Install Sun Java on Debian Etch
  10. Ruby on Rails

Comments