On Fri, Sep 06, 2002 at 10:41:26AM -0700, Tony Jin wrote: > That was because the environment variable > 'LD_LIBRARY_PATH' was not set. > 'LD_LIBRARY_PATH' can't be set correctly inside the > perl script itself. > > So you have two ways to make it work: > 1) set 'LD_LIBRARY_PATH' in the non-oracle user > profile; > or 2) put the the perl script inside a shell script, > where you can pre-set the 'LD_LIBRARY_PATH' .
3) set LD_LIBRARY_PATH in the script, then have the script exec itself so that it is running in the new environment. I don't remember the exact syntax, but it's in the list archives somewhere. 4) add the path to /etc/ld.so.conf and then run ldconfig. This only needs to be done once, and will make the libraries available to all processes. However, I think some flavors of UNIX don't support /etc/ld.so.conf. Ronald
