pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Xinyu Hua <xhua@cse.ucsc.edu>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: libpq.so.3 not found
Date: Mon, 08 Sep 2003 20:06:44 -0400
Message-ID: <10936.1063066004@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.GSO.4.44.0309081647210.23106-100000@khukuri.cse.ucsc.edu>
References: <Pine.GSO.4.44.0309081647210.23106-100000@khukuri.cse.ucsc.edu>

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



view thread (8+ messages)  latest in thread

Message-ID: <10936.1063066004@sss.pgh.pa.us>
Permalink:  ../10936.1063066004@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10936.1063066004@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, xhua@cse.ucsc.edu
  Subject: Re: libpq.so.3 not found
  In-Reply-To: <10936.1063066004@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox