To clear up things a little, ldconfig look in the directories specified in
/etc/ld.so.conf for libraries, so if you don't want to move some libs in the
standard libs directories (/usr/lib or /usr/local/lib), just add the path where they
can be found to ld.so.conf and run ldconfig as root. Then, ldconfig -p | grep pq
should show whether it was found.
Hope this helps, Jochen
---