in reply to set env var at compile time

No offense to Our::Config::Module, but I wonder if LD_LIBRARY_PATH is what you think it is. Have you tried printing it once you set it?

I wonder also if Our::Config::Module somehow pulls in Our::Oracle::Module (perhaps indirectly) so that you're not really getting the environment set in time for it.

Are you on Solaris? If so, see Re: %ENV and DBI (setting LD_LIBRARY_PATH inside the process doesn't work).

Replies are listed 'Best First'.
Re^2: set env var at compile time
by SantaClaus (Initiate) on Jun 26, 2008 at 21:25 UTC
    Fair calls - I'll check on them. I also wonder if the failure of setting LD_LIBRARY_PATH isn't because of what diotalevi said, which would make it true for any *nix, yes? Meaning that the truth I'm slowly reconciling myself to is that I just can't do this within Perl only. Ah well, I'll live. Thanks.

      I think what diotalevi says is true, but I think there is still a Perl solution. I think the solution moritz gives below would work (using exec). It's very similar to what's in the link in my note above. I say all this without having tried it, of course.