pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: radha.manohar@ndsu.nodak.edu
Cc: pgsql-novice@postgresql.org
Subject: Re: [PERFORM] error while executing a c program with embedded sql
Date: Mon, 10 Nov 2003 21:57:20 +0530
Message-ID: <3FAFBC68.4020601@trade-india.com> (raw)
In-Reply-To: <3324.134.129.110.96.1068390374.squirrel@webmail.ndsu.nodak.edu>
References: <3324.134.129.110.96.1068390374.squirrel@webmail.ndsu.nodak.edu>

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)
>  
>





view thread (5+ messages)

Message-ID: <3FAFBC68.4020601@trade-india.com>
Permalink:  ../3FAFBC68.4020601@trade-india.com/
Also on:    postgresql.org/message-id/3FAFBC68.4020601@trade-india.com

 · 

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-performance@postgresql.org
  Cc: mallah@trade-india.com, radha.manohar@ndsu.nodak.edu, pgsql-novice@postgresql.org
  Subject: Re: [PERFORM] error while executing a c program with embedded sql
  In-Reply-To: <3FAFBC68.4020601@trade-india.com>

* 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