View Setting up development environment on Ubuntu Hardy
This guide shows how to get a git clone up and running on Ubuntu Hardy.
First, install some dependencies – I’m using the package manager. Other guides show how to use the ruby gem system instead.
sudo apt-get install ruby1.8 ruby1.8-dev rake git-core libsqlite3-ruby1.8
Follow the instructions in Updating rubygems to 1.3.1
and fixing gemrunner NameError
Now run:
sudo gem install rspec
sudo gem install RedCloth
Get the source code with
git clone git://github.com/bsag/tracks.git
Now check the the installation manual
where you follow the instructions from Configure variables and onwards. I’ve already selected sqlite3 as database.
Debugging
Install debugger support with:
sudo gem install ruby-debug
Start server with
server --debugger
Simply insert the debugger statement in the Ruby code to invoke a debugger shell with the current context.