Re: [PERFORM] error while executing a c program with embedded sql - Mailing list pgsql-novice

From Rajesh Kumar Mallah
Subject Re: [PERFORM] error while executing a c program with embedded sql
Date
Msg-id 3FAFBC68.4020601@trade-india.com
Whole thread Raw
In response to Re: error while executing a c program with embedded sql  (<radha.manohar@ndsu.nodak.edu>)
List pgsql-novice
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)
>
>



pgsql-novice by date:

Previous
From: "Karen Smallwood"
Date:
Subject: COPY with null
Next
From: sam@edup.tudelft.nl (Sam)
Date:
Subject: NOVICE - first time trigger and function