‣ 2006-07-16


Nostalgia Sunday: Flat eric rides again!

One of the mid-wifes just came round so we got to hear the babies heartbeat, which was cool. Carmen thought it sounded like "the video of that yellow techno puppet from the 90s". One google groups search for "techno yellow video puppet" later and we found: Flat Eric.

Installing Tracks on Debian Sarge

My app of choice for GTD is Tracks(version 1.041). I've been using it at home for a little while on my main machine and my laptop, with no major gotchas, save for some speed problems. So, I thought: "I'll just install it on my public debian box, which should be easy because both of them are unix, right?". Ahem ;-) Ok, I'm not actually that naive, but it is was a hope at least that it might be that easy.

For future reference, below are the steps I needed to go through (what follows is done as root unless mentioned otherwise). The links I found useful are on Delicious.

Debian packages:

Add the DotDeb sources to your sources.list (this was because I wanted !MySQL 5.*), then:

apt-get install -t dotdeb mysql-client mysql-server libmysqlclient15-dev
apt-get install ruby libzlib-ruby rdoc irb libyaml-ruby libzlib-ruby libwebrick-ruby ruby1.8-dev

Gems:

Download rubygems, untar it somewhere, cd to the expanded dir, then:

export GEM_HOME=/usr/local/lib/ruby/gems/1.8; echo "export GEM_HOME=/usr/local/lib/ruby/gems/1.8" >> /etc/profile
ruby ./setup.rb config --prefix=/usr/local --sysconfdir=/usr/local/etc --siteruby=/usr/local/lib/site_ruby
ruby ./setup.rb install
gem install rails --include-dependencies
gem install mysql 
export RUBYOPT=rubygems; echo "export RUBYOPT=rubygems" >> /etc/profile

If you haven't installed ruby1.8-dev then you'll get some wierd errors from the mysql gem install about "mkmf" being missing (this trumped me for a bit).

Tracks install:

That should be it for dependencies, if I remember it correctly. I'm running good-old webrick, so there is no need for other dependencies, such as fastcgi.

The rest was pretty-much just copying over the tracks install, setting up db users and restoring from a db dump, except you have to add the following to your database.yml config:

socket: /var/run/mysqld/mysqld.sock

Note that I did not do a from-scratch install; I tarred up the tracks install from my mac box and copied over a mysqldump. There may be other gotchas if you were to do it all entirely from the beginning.