X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1F147D1B8AC for ; Mon, 22 Sep 2003 16:36:00 +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 58421-10 for ; Mon, 22 Sep 2003 13:35:28 -0300 (ADT) Received: from colsweeper.cranel.com (newmail.cranel.com [12.32.71.147]) by svr1.postgresql.org (Postfix) with ESMTP id 9BBE6D1B4E3 for ; Mon, 22 Sep 2003 13:35:27 -0300 (ADT) Received: from colmail01.cranel.com (colmail01.cranel.com) by colsweeper.cranel.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Mon, 22 Sep 2003 12:37:39 -0400 Received: from cranel.com (gspiegelberg.cranel.com [192.168.11.134]) by colmail01.cranel.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id TM0YBF8B; Mon, 22 Sep 2003 12:38:04 -0400 Message-ID: <3F6F24C2.4040507@cranel.com> Date: Mon, 22 Sep 2003 12:35:14 -0400 From: Greg Spiegelberg Organization: Cranel, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Kiger Cc: Postgres Admin List Subject: Re: libpq problem References: <3F6F18F7.4000400@virginia.edu> <3F6F1FFF.7040305@musicrebellion.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/351 X-Sequence-Number: 10439 Kris, There are a variety of answers for a variety of operating systems. On Linux add the PostgreSQL lib directory to /etc/ld.so.conf and run "ldconfig" as root or add the lib directory to your LD_LIBRARY_PATH environment variable. I prefer the 1st fix. On Solaris 8 or later run as root "crle -u -l /path/to/pgsql/lib" which is the same as the ldconfig option in Linux. Alternatively, use the same LD_LIBRARY_PATH solution as above which, by the way, this will work in HP-UX and AIX though using different environment variables LIBPATH and SHLIB_PATH, respectively. Greg Kris Kiger wrote: > I have written a variation of one of the libpq C functions provided with > postgres. It compiles just fine, but when I try to execute the program > it reports the following error: > > ./a.out: error while loading shared libraries: libpq.so.3: cannot open > shared object file: No such file or directory > > I have checked my system and the libpq.so.3 exists and all of its > dependancies are linked. Just curious if anyone has any ideas. Thanks > > Kris > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly -- Greg Spiegelberg Sr. Product Development Engineer Cranel, Incorporated. Phone: 614.318.4314 Fax: 614.431.8388 Email: gspiegelberg@Cranel.com Cranel. Technology. Integrity. Focus.