Perl Monk, Perl Meditation | |
PerlMonks |
Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environmentby garybiscuit (Initiate) |
on Feb 06, 2013 at 17:07 UTC ( [id://1017474]=perlquestion: print w/replies, xml ) | Need Help?? |
garybiscuit has asked for the wisdom of the Perl Monks concerning the following question: Hi, 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...
...produces...
... 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 ----
Thanks,
Back to
Seekers of Perl Wisdom
|
|