Re: libpq.so.3 not found

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

Xinyu Hua <xhua(at)cse(dot)ucsc(dot)edu> writes:
> 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

Almost certainly, the problem is that /usr/local/lib/ isn't getting
searched and so libgcc_s.so isn't found. This sort of problem is easily
hit because different bits of code have different ideas about where to
search for shared libraries. I think ldd pays attention to
LD_LIBRARY_PATH, but gcc only pays attention to -L switches.

regards, tom lane

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Xinyu Hua 2003-09-09 03:52:29 Re: libpq.so.3 not found
Previous Message Xinyu Hua 2003-09-09 03:37:15 Re: libpq.so.3 not found