Sorry for that short mail, send to fast. i think currently are the following flags are wrong `pg_config`: BINDIR = /usr/bin PKGLIBDIR = /usr/lib PGXS = /usr/lib/pgxs/src/makefiles/pgxs.mk on another system i installed postgres-8.2 for a while i have this: BINDIR = /usr/lib/postgresql/8.2/bin PKGLIBDIR = /usr/lib/postgresql/8.2/lib PGXS = /usr/lib/postgresql/8.2/lib/pgxs/src/makefiles/pgxs.mk