in reply to Setting LD_LIBRARY_PATH for DynaLoader modules

This behavior of LD_LIBRARY_PATH recently came up on the dbi-users mailing list. Apparently, LD_LIBRARY_PATH has to be set before the process starts. That's just the way it works. I'm not sure why. :/

My preferred solution is to add the Oracle lib directory to /etc/ld.so.conf and then run ldconfig. That will make the Oracle libraries available to all processes.

  • Comment on Re: Setting LD_LIBRARY_PATH for DynaLoader modules

Replies are listed 'Best First'.
Re: Re: Setting LD_LIBRARY_PATH for DynaLoader modules
by extremely (Priest) on Jan 05, 2001 at 04:57 UTC
    huh. I never thought of telling ldconfig to look in another directory. I always just 'ln'ed a link to the db libs in /usr/local/lib and ran it. =P
    /me makes note of ld.so.conf on hand...

    Come to think of it, most of the time I wanted to add environment variables to root and other stuff so sometimes I just rebooted and tried that new kernel at the same time. The evil influence of Windows, I suppose.

    --
    $you = new YOU;
    honk() if $you->love(perl)