Re: libpq.so.3 not found

From: Xinyu Hua <xhua(at)cse(dot)ucsc(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: libpq.so.3 not found
Date: 2003-09-09 03:37:15
Message-ID: Pine.GSO.4.44.0309082034370.788-100000@sundance.cse.ucsc.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Mon, 8 Sep 2003, Tom Lane wrote:

> Xinyu Hua <xhua(at)cse(dot)ucsc(dot)edu> writes:
> > I am working on solaris platform.
> > When I try to create an executable file using gcc -o -L -lpq, it gives me
> > an error message:
> > ld.so.1: file_name: fatal: libpq.so.3: open failed: No such file or
> > directory
> > But I give the full path of lib files in -L option. And libpq.so.3 is
> > right there.
>
> Dynamic linker error messages are notoriously unhelpful :-(. I'll bet
> it's really complaining about not being able to find some library that
> libpq.so depends on. You should be able to use ldd (or local equivalent)
> to inspect the list of libraries that libpq.so needs, and from there
> figure out what the problem is.

Tom, I think all the libraries that libpq.so needs are right there. Please
see the following:
libresolv.so.2 => /usr/lib/libresolv.so.2
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
sundance 50> ls /usr/lib/libsocket.so.1
/usr/lib/libsocket.so.1*
sundance 51> ls /usr/lib/libnsl.so.1
/usr/lib/libnsl.so.1*
sundance 52> ls /usr/local/lib/libgcc_s.so.1
/usr/local/lib/libgcc_s.so.1
sundance 53> ls /usr/lib/libc.so.1
/usr/lib/libc.so.1*
sundance 54> ls /usr/lib/libdl.so.1
/usr/lib/libdl.so.1*
sundance 55> ls /usr/lib/libmp.so.2
/usr/lib/libmp.so.2*
sundance 56> ls /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1@

So what else could be wrong?
Thank you very much.
Xinyu

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2003-09-09 03:41:35 Re: libpq.so.3 not found
Previous Message Tom Lane 2003-09-09 00:06:44 Re: libpq.so.3 not found