System: Ubuntu 10.04 LTS
The rake process hangs on installing libcap2-bin if /etc/pam.d/common-* has been modified. The libcap installer launches an actual menu to select what to do, but rake doesn't switch to it, it just blocks.
Quick fix is to install libcap2-bin separately.