X-Original-To: pgsql-novice-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8C3D7D1B525 for ; Sun, 9 Nov 2003 16:27:44 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 02715-04 for ; Sun, 9 Nov 2003 12:27:13 -0400 (AST) Received: from trade-india.com (ns5.trade-india.com [66.234.10.13]) by svr1.postgresql.org (Postfix) with SMTP id 25CC4D1B532 for ; Sun, 9 Nov 2003 12:27:12 -0400 (AST) Received: (qmail 18980 invoked from network); 9 Nov 2003 16:28:18 -0000 Received: from unknown (HELO trade-india.com) (203.145.130.142) by ns5.trade-india.com with SMTP; 9 Nov 2003 16:28:18 -0000 Message-ID: <3FAFBC68.4020601@trade-india.com> Date: Mon, 10 Nov 2003 21:57:20 +0530 From: Rajesh Kumar Mallah User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 X-Accept-Language: en-us, en MIME-Version: 1.0 To: radha.manohar@ndsu.nodak.edu Cc: pgsql-novice@postgresql.org Subject: Re: [PERFORM] error while executing a c program with embedded sql References: <3324.134.129.110.96.1068390374.squirrel@webmail.ndsu.nodak.edu> In-Reply-To: <3324.134.129.110.96.1068390374.squirrel@webmail.ndsu.nodak.edu> 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: 200311/68 X-Sequence-Number: 8771 radha.manohar@ndsu.nodak.edu wrote: >I have a c program called test1.pgc with some sql statements embedded in >it. The program was preprocessed, compiled and linked. Now, I have the >executable test1. > >When I run the executable it says, > >./test1: error while loading shared libraries: libecpg.so.3: cannot open >shared object file: No such file or directory > check where the so file is located. $ locate libecpg.so.3 say its /usr/local/pgsql/lib then either add the folder above to /etc/ld.so.conf and run ldconfig as root. or $ export LD_LIBRARY_PATH=/path/to/folder/containing/the/so/file $ ./test1 the above assumes u are on linux. on unix also its similar. > >What does it mean by this error message? What should I do to correct this >error and run the executable successfully? > >Your response would be very much appreciated. > >Thanks and Regards, > >Radha > > > >---------------------------(end of broadcast)--------------------------- >TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > >