in reply to Re: (tye)Re: Setting LD_LIBRARY_PATH for DynaLoader modules
in thread Setting LD_LIBRARY_PATH for DynaLoader modules

What you need to do is put it in your /etc/profile directory. This is because the User that runs your CGIs should call this before it runs anything. I added these lines in my /etc/profile to make it work:
ORACLE_HOME="/usr/local/OraHome1" PATH="$PATH:$ORACLE_HOME/bin:" export ORACLE_HOME export LD_LIBRARY_PATH=$ORACLE_HOME/lib
It worked fine for me after I did that.

--BigJoe

Learn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.

Replies are listed 'Best First'.
Re: Re: Re: (tye)Re: Setting LD_LIBRARY_PATH for DynaLoader modules
by Fastolfe (Vicar) on Jan 06, 2001 at 02:02 UTC
    We've done that for the users, but what if a script using this module is being run in a non-interactive capacity (such as via cron or another program that does not necessarily load environment settings from /etc/profile)? The idea is to make this module as absolutely self-contained as possible, and functional with little if any change to the environment as possible.

    In this specific case, the module was being called via a CGI script under Netscape server. My solution was just to add an appropriate LD_LIBRARY_PATH as an environment variable NES passes to its CGI scripts, but I view this as a messy fix, since it doesn't work towards my goal of making the module self-contained. It will do, though, and I don't think we'll have many more (if any) issues like this to deal with in the future.