Rake aborts with "no such file to load -- postgres"

enable the universe repositories, then do this:

# gem uninstall postgres # apt-get update # apt-get install libpgsql-ruby

the postgres gem doesn't seem to link against libpq correctly on debian / ubuntu.