First, you really have to post all those ugly error lines here. The line you gave us tells only that an error has occurred, nothing else. Though there are a few magicians here (no, don't look at me), the puzzle you gave us is a bit too tricky to solve.
Second, why do you want to install PG 7.1.3? A new OpenACS instance needs at least PG 7.2, I think, and the latest code is being made to work with 7.3.