|No such thing as a small change|
Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environmentby garybiscuit (Initiate)
|on Feb 06, 2013 at 17:07 UTC||Need Help??|
garybiscuit has asked for the
wisdom of the Perl Monks concerning the following question:
I've successfully installed the DBI and DBD::Oracle Perl modules, but I've noticed that I can't "use DBD::Oracle;" unless my LD_LIBRARY_PATH is set in my environment before I call the Perl program that attempts to use DBD::Oracle...
... if LD_LIBRARY_PATH is NOT set in my environment first. However, if I *do* set LD_LIBRARY_PATH in the environment, the above code works fine.
Obviously I could make a wrapper script that sets LD_LIBRARY_PATH before invoking my above program, but I'd like to make my program as compact and self-reliant as possible (i.e. no wrapper script).
Is there anything I can do to be able to invoke DBD::Oracle without having to set LD_LIBRARY_PATH first in the environment?
---- MY STATS ----