Forum OpenACS Q&A: Response to libpq.so.2.1 cannot open shared object file

Try updating /etc/lib.so.conf and linking /usr/local/pgsql/lib from /usr/lib/pgsql. That seemed to resolve some LIB issues for me. Also, a couple of times it was because the LIB path was not correct in the make file for the postgres.so driver so I had to remake. Not an expert just some thoughts.