Thread: psql error: cannot open libpq.so.3

psql error: cannot open libpq.so.3

From
Phil Campaigne
Date:
Hi Tom,
THanks for your response.  Here are my results:
-bash-2.05b$ ldd /usr/local/pgsql/bin/psql
         libpq.so.3 => /usr/local/pgsql/lib/libpq.so.3 (0x40013000)
         libz.so.1 => /usr/lib/libz.so.1 (0x4002f000)
         libreadline.so.4 => /usr/lib/libreadline.so.4 (0x4003d000)
         libtermcap.so.2 => /lib/libtermcap.so.2 (0x40069000)
         libcrypt.so.1 => /lib/libcrypt.so.1 (0x4006d000)
         libresolv.so.2 => /lib/libresolv.so.2 (0x4009a000)
         libnsl.so.1 => /lib/libnsl.so.1 (0x400aa000)
         libdl.so.2 => /lib/libdl.so.2 (0x400bf000)
         libm.so.6 => /lib/libm.so.6 (0x400c2000)
         libc.so.6 => /lib/libc.so.6 (0x400e3000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
-bash-2.05b$

-bash-2.05b$ ldd /usr/local/pgsql/lib/libpq.so.3
         libcrypt.so.1 => /lib/libcrypt.so.1 (0x4001d000)
         libresolv.so.2 => /lib/libresolv.so.2 (0x4004a000)
         libnsl.so.1 => /lib/libnsl.so.1 (0x4005a000)
         libc.so.6 => /lib/libc.so.6 (0x4006e000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
-bash-2.05b$

______________________________________
Tom, I'm not really sure what this is telling me.  What do I do next?
thanks,
Phil
______________________________________________________________





Re: psql error: cannot open libpq.so.3

From
Tom Lane
Date:
Phil Campaigne <pcampaigne@charter.net> writes:
> -bash-2.05b$ ldd /usr/local/pgsql/lib/libpq.so.3
>          libcrypt.so.1 => /lib/libcrypt.so.1 (0x4001d000)
>          libresolv.so.2 => /lib/libresolv.so.2 (0x4004a000)
>          libnsl.so.1 => /lib/libnsl.so.1 (0x4005a000)
>          libc.so.6 => /lib/libc.so.6 (0x4006e000)
>          /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> -bash-2.05b$

> Tom, I'm not really sure what this is telling me.  What do I do next?

Chase the libraries to see which one has an unresolved reference.  All
those appear to be correctly resolved (ie, the linker found actual files
to list on the righthand side).  So your problem is another level down,
or possibly even several levels down.

            regards, tom lane