Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to set LD_LIBRARY_PATH

by mbethke (Hermit)
on Jan 09, 2012 at 07:16 UTC ( #946955=note: print w/ replies, xml ) Need Help??


in reply to How to set LD_LIBRARY_PATH

It looks like something is wrong with your installation, i.e. the DBD::Oracle module is installed in a system directory but not its libclntsh.so.11.1 dependency. That's something for the sysadmin to fix---link the library to a dir in the standard library path, extend the path in /etc/profile or something.

As a workaround, you can specify a full shell command line including variable setting in a crontab as well. Or do something evil like (untested, prone to DOSing the system if something goes wrong, and hopefully unnecessary anyway)

eval "use DBD::Oracle;"; if($@) { $ENV{LD_LIBRARY_PATH} = '/where/ever/the/hell'; exec $0 @ARGV; }


Comment on Re: How to set LD_LIBRARY_PATH
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (13)
As of 2015-07-03 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (54 votes), past polls