Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: adding libs in a setuid-perl script

by ikegami (Patriarch)
on Aug 30, 2010 at 14:58 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://858020]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-24 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found