X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0DF4BD1B4E6 for ; Tue, 9 Sep 2003 00:07:12 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 58471-02 for ; Mon, 8 Sep 2003 21:07:04 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id D82D9D1B4FD for ; Mon, 8 Sep 2003 21:07:00 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h8906iAn010937; Mon, 8 Sep 2003 20:06:44 -0400 (EDT) To: Xinyu Hua Cc: pgsql-interfaces@postgresql.org Subject: Re: libpq.so.3 not found In-reply-to: References: Comments: In-reply-to Xinyu Hua message dated "Mon, 08 Sep 2003 16:52:58 -0700" Date: Mon, 08 Sep 2003 20:06:44 -0400 Message-ID: <10936.1063066004@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/9 X-Sequence-Number: 4427 Xinyu Hua 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