Re: libpq.so.3 not found - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: libpq.so.3 not found
Date
Msg-id 10936.1063066004@sss.pgh.pa.us
Whole thread Raw
In response to libpq.so.3 not found  (Xinyu Hua <xhua@cse.ucsc.edu>)
Responses Re: libpq.so.3 not found  (Xinyu Hua <xhua@cse.ucsc.edu>)
List pgsql-interfaces
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.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: Xinyu Hua
Date:
Subject: libpq.so.3 not found
Next
From: Xinyu Hua
Date:
Subject: Re: libpq.so.3 not found