Just to speed things up for anybody who needs it, here are the commands we use to get Rails sites working on a fresh Debian-based system.

CODE:
  1. sudo apt-get install ruby rdoc1.8 ri1.8 irb1.8 irb ruby1.8-dev build-essential
  2. mysql-server libmysql-ruby libmysqlclient15off libmysqlclient15-dev mysql-admin
  3. imagemagick librmagick-ruby libmagick9-dev libopenssl-ruby subversion git-core

Next, go to http://rubyforge.org/frs/?group_id=126 and download the latest rubygems package (grab the .tar.gz file).

Extract it, and run

CODE:
  1. sudo ruby setup.rb

When that finishes, you should be able to type

CODE:
  1. gem -v

And get a version number (like 1.3.1 at present).  If this doesn't work, it may be the case that it installed as command "gem1.8" (rather than "gem").  So we can fix this pretty easily:

CODE:
  1. sudo ln -s /usr/bin/gem1.8 /usr/bin/gem

Lastly you can install all the commonly used gems we use here:

CODE:
  1. gem sources -a http://gems.github.com
  2. sudo gem install mongrel ruby-debug mysql mislav-will_paginate ferret
  3. acts_as_ferret rmagick fastercsv rails capistrano rake

Tags: , , ,


No Responses to “Getting on Rails Quickly for Debian-based systems”  

  1. No Comments

Leave a Reply