in reply to Inline C, accessing an so lib
Well I'm using linux, with perl5.80. The so library in question, is listed in my cache, with ldconfig -p If I do an ldd on gethttp_bce4.so it dosn't list libghttp.so.1.0.0 as being linked. I did manage to get it to run by wrapping it in a shell script: ########################################### #!/bin/sh LD_PRELOAD=/opt/gnome/lib/libghttp.so.1.0.0 export LD_PRELOAD gethttp.pl ####################################### But it sure seems like a clunky way to access a so lib from perl. Is there a way to do this all from within the perl script? I couldn't get the export command to work with a system command, or it didn't affect the loading.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Inline C, accessing an so lib
by zentara (Cardinal) on Nov 15, 2002 at 16:12 UTC |