Load "myLib.so" error cannot load obj file...

Started by didier tantiover 19 years ago2 messagesgeneral
Jump to latest
#1didier tanti
tantididier@yahoo.fr

Hello,
i am desesperate to get this resolved, you are my only hope
here is the issue:

i am compiling a .so using:

gcc -shared libxx.so -lpcre,

then in my DB, i am trying:

LOAD '/myPath/libxx.so',

it keeps returning me :

ERROR: could not load library "/myPath/libxx.so": libpcre.so : cannot open shared object file: No such file or directory.

the problem is that the libpcre.so does exist and is in my
LD_LIBRARY_PATH,

I really dont understand anything, i even dont know where to look at

at least could u give me some idea how to debug that ? i am thinking to reinstall the postgres ... i need to say that the postgres dameon is started at startup,

---------------------------------
D�couvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/R�ponses pour partager vos connaissances, vos opinions et vos exp�riences. Cliquez ici.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: didier tanti (#1)
Re: Load "myLib.so" error cannot load obj file...

didier tanti <tantididier@yahoo.fr> writes:

ERROR: could not load library "/myPath/libxx.so": libpcre.so : cannot open shared object file: No such file or directory.

the problem is that the libpcre.so does exist and is in my
LD_LIBRARY_PATH,

But is it in the postmaster's LD_LIBRARY_PATH? That's what counts here.

regards, tom lane