Re: [PERFORM] error while executing a c program with embedded sql
От | Rajesh Kumar Mallah |
---|---|
Тема | Re: [PERFORM] error while executing a c program with embedded sql |
Дата | |
Msg-id | 3FAFBC68.4020601@trade-india.com обсуждение исходный текст |
Ответ на | Re: error while executing a c program with embedded sql (<radha.manohar@ndsu.nodak.edu>) |
Список | 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 по дате отправления: