Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: adding libs in a setuid-perl script

by ikegami (Pope)
on Aug 30, 2010 at 14:58 UTC ( #858020=note: print w/replies, xml ) Need Help??


in reply to adding libs in a setuid-perl script

I think libct isn't the XS component of the Perl module, but rather a C library used by the former. use lib won't help.

I suspect the problem lies with LD_LIBRARY_PATH. If so, your attempt to set it only executes after the module has already been loaded. Try

BEGIN { $ENV{LD_LIBRARY_PATH} = '...'; }

For some people, even that was too late. They had to do something like

BEGIN { if (!$ENV{LD_LIBRARY_PATH}) { $ENV{LD_LIBRARY_PATH} = '...'; exec($^X, $0, @ARGV); } }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://858020]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2021-01-21 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?