It's hard to know what the problem is, but I'm guessing that you're installing on PG 7.2. The PG include files moved between 7.1 and 7.2, so you have to edit the 'configure' script to find the new location. See the comment by James Megquier on at
https://openacs.org/doc/openacs-4/nextsteps.html.