Installing Ruby on Rails on Debian

It’s Lenny I think.

Anyway, if you want to install your own development environment you have to do this things:

Install the Ruby environment

  • # aptitude install ruby-full build-essential

Install the Gem manager

  • # wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz
  • # tar xzvf rubygems-1.3.6.tgz
  • # ruby rubygems-1.3.6/setup.rb
  • # ln -s /usr/bin/gem1.8 /usr/bin/gem

Install Rails and some database support

  • # gem install rails sqlite3-ruby mongrel

Ok, that’s all.

I installed libsqlite3-dev too, but I don’t remember if it’s required. If you want to test your environment do this:

  • $ rails test
  • $ ruby test/script/server

and point your browser to localhost:3000. That’s all.


Ruby on Rails tutorials

Just found this awesome collection.

Take a look.