If you have gotten far enough to get the error in login2.cpp that you described then the solution is most likely described in the other posts in the Linux forum. Most of those solutions deal with PostgreSQL configuration and apply to Windows and Mac OSX as well as Linux.
Have you tried following the advice in those other posts?
Please visit: http://www.xtuple.org/phpBB3/viewtopic.php?f=&t=3533&p=0 for the changed document
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.