PHP Warning: Unable to load dynamic library 'pgsql.so' - pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
Hi.
The ${PGINSTALLDIR}/lib directory should be in your /etc/ld.so.conf, and then run ldconfig
You can use after that, without any compiles.
Otherwise, set the LD_LIBRARY_PATH variable for the process to include the ${PGINSTALLDIR}/lib at runtime.
${PGINSTALLDIR} is the dir where you installed PostgreSQL.
hth.