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 550F0D1B518 for ; Tue, 9 Sep 2003 03:41:54 +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 91895-07 for ; Tue, 9 Sep 2003 00:41:42 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id B76C3D1B533 for ; Tue, 9 Sep 2003 00:41:41 -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 h893fZAn020178; Mon, 8 Sep 2003 23:41:35 -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 20:37:15 -0700" Date: Mon, 08 Sep 2003 23:41:35 -0400 Message-ID: <20177.1063078895@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/11 X-Sequence-Number: 4429 Xinyu Hua 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