http://www.perlmonks.org?node_id=1017482


in reply to Re: Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment
in thread Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment

OK. I looked at that thread. Using the "exec $0" method to re-invoke the program works (after setting LD_LIBRARY_PATH) - but that just seems a little too funky for me. Is there a "cleaner" way? (For lack of a better way of putting it).

Thanks,
Gary
  • Comment on Re^2: Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment

Replies are listed 'Best First'.
Re^3: Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment
by Corion (Patriarch) on Feb 06, 2013 at 18:19 UTC

    Yes. Write a wrapper (shell) script that sets the environment variables before invoking your Perl program.

Re^3: Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment
by Anonymous Monk on Feb 07, 2013 at 08:19 UTC