tejnil has asked for the wisdom of the Perl Monks concerning the following question:

Can anybody help? How do I pre-load LD_LIBRARYN32_PATH needed by a module (invoked via use)? Putting it in the BEGIN {} block doesn't work (see below). The only I'm able to load is by running a shell script (setenv).
BEGIN { $ENV{LD_LIBRARYN32_PATH} = "/u/wwsmith/pkg/ngt/lib:". "/u/wwsmith/pkg/globus-2.0-gcc-3.1.1/lib:". "/u/wwsmith/pkg/xerces-c-1_7_0-gcc-3.1.1/lib:". "/u/wwsmith/pkg/cppunit-1.8.0-gcc-3.1.1/lib:". "/u/wwsmith/pkg/gcc-3.1.1/lib:". "/usr/local/pkg/globus/2.0/lib:". "/opt/scsl/scsl/usr/lib32/mips4:". "/opt/scsl/scsl/usr/lib32:". "/opt/mpt/mpt/usr/lib32/mips4:". "/opt/mpt/mpt/usr/lib32:". "/opt/MIPSpro/MIPSpro/usr/lib32/mips4:". "/opt/MIPSpro/MIPSpro/usr/lib32"; }
Thanks very much,

Ed

Edit by tye, add CODE tags

Replies are listed 'Best First'.
Re: How to pre-load LD_LIBRARYN32_PATH ???
by tachyon (Chancellor) on Mar 12, 2003 at 22:12 UTC
Re: How to pre-load LD_LIBRARYN32_PATH ???
by derby (Abbot) on Mar 12, 2003 at 21:44 UTC
    LD_LIBRARYN32_PATH? Silly MIPS. Check out this node

    -derby