Forum OpenACS Q&A: Re: Problems compiling nspostgres on Debian stable while using the Aolserver 4 docs

Are you using debian's postgresql package or did you install pg from source? If it's the former did you try to put this in the Makefile:

PGLIB = /usr/lib/postgresql
PGINC = /usr/include/postgresql

instead of the ifeq block in there?