Re: libpq.so.3 not found

Поиск
Список
Период
Сортировка
От Xinyu Hua
Тема Re: libpq.so.3 not found
Дата
Msg-id Pine.GSO.4.44.0309082034370.788-100000@sundance.cse.ucsc.edu
обсуждение исходный текст
Ответ на Re: libpq.so.3 not found  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: libpq.so.3 not found  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces

On Mon, 8 Sep 2003, Tom Lane wrote:

> Xinyu Hua <xhua@cse.ucsc.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



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: libpq.so.3 not found
Следующее
От: Tom Lane
Дата:
Сообщение: Re: libpq.so.3 not found