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.

Comments

blog comments powered by Disqus
Fork me on GitHub