On 2008-04-09 13:07:55 -0500, James H. McCullars wrote: > At 10:47 AM 4/9/2008, pgodfrin wrote: > > >This will obviate the need to use LD_LIBRARY_PATH, which has some > >controversy surrounding it's use. I also found a strangeness for the > >install of DBD. If I remember correctly, the install document states > >that LD_LIBRARY_PATH should be set during the module install, which > >will link the value of the LD_LIBRARY_PATH . Indeed the value ends up > >in the make file (in the EXTRA_LIBS, LD_RUN_PATH and OTHERLDFLAGS > >entries), and the library seems to be available as per the ldd > >command, yet, without either an LD_LIBRARY_PATH environment variable > >or the ld.so.conf.d method, DBD does not run. > > I've just been through an install of DBD::Oracle on a Solaris 10 machine > and > this was my experience as well. My needs were complicated by the fact that I > was running it as a CGI script and thus did not have a way to easily set an > environment variable.
$ENV{LD_LIBRARY_PATH} = ...; or somewhat more generic: if (open(E, "$offl_root/dbi/env")) { while (<E>) { chomp; my ($k, $v) = split(/=/); $ENV{$k} = $v; } close(E); } hp -- _ | Peter J. Holzer | If I wanted to be "academically correct", |_|_) | Sysadmin WSR | I'd be programming in Java. | | | [EMAIL PROTECTED] | I don't, and I'm not. __/ | http://www.hjp.at/ | -- Jesse Erlbaum on dbi-users
pgpMmnG10yfux.pgp
Description: PGP signature