> "libpq.so" is part of the PostgreSQL package.  You need to make sure you
> have $POSTGREPSQL_HOME/lib in your LD_LIBRARY_PATH.  Where POSTGREPSQL_HOME
> is the location you have postgreSQL installed.
> 
> In my case, on Solaris in /usr/local/pgsql
> 
> nexthawk:/# cd /usr/local/pgsql/lib
> nexthawk:/usr/local/pgsql/lib# ls
> libecpg.a          libpgeasy.so.2@    libpq++.a          libpq.so.2@
> libecpg.so@        libpgeasy.so.2.1*  libpq++.so@        libpq.so.2.1*
> libecpg.so.3@      libpgtcl.a         libpq++.so.3@      plperl.so*
> libecpg.so.3.2.0*  libpgtcl.so@       libpq++.so.3.1*    plpgsql.so*
> libpgeasy.a        libpgtcl.so.2@     libpq.a            pltcl.so*
> libpgeasy.so@      libpgtcl.so.2.1*   libpq.so@
> 
> That should take care of your peoblem.

The other thing that we could do that would be a more permanent fix
would be to include /usr/local/pgsql/lib in LD_RUN_PATH that way you
don't have to worry about environment variables in the future.  -sc