Re: How to set LD_LIBRARY_PATH

2010-06-01 Thread Jonathan Leffler
On Sun, May 30, 2010 at 10:47 AM, Marilyn Sander < marilyn-san...@earthlink.net> wrote: > > [...] My reasoning was that the thing being > loaded is a shared object (.so file). The system loader (ld) has to be > invoked for loading > a shared object. That seems to me to require a separate proce

Re: How to set LD_LIBRARY_PATH

2010-05-30 Thread Marilyn Sander
On May 29, 2010, at 6:24 AM, Paul Johnson wrote: On Fri, May 28, 2010 at 11:23:32AM -0700, Marilyn Sander wrote: On May 28, 2010, at 9:33 AM, Paul Johnson wrote: On Fri, May 28, 2010 at 06:14:38AM -0400, John Scoles wrote: You will have to set those values before your modules load. So yo

Re: How to set LD_LIBRARY_PATH

2010-05-30 Thread Chas. Owens
On Sat, May 29, 2010 at 12:19, Bobak, Mark wrote: > I'd argue you want to use a shell wrapper anyhow, because rather than setting > those variables explicitly, you ought to do something like: > export ORACLE_SID=your_sid > export ORAENV_ASK=NO > . oraenv > > and Oracle will set it all for you, an

RE: How to set LD_LIBRARY_PATH

2010-05-30 Thread Bobak, Mark
will continue to do the right thing. -Mark From: Paul Johnson [p...@pjcj.net] Sent: Friday, May 28, 2010 12:33 To: John Scoles Cc: newbie01 perl; beginners; dbi-users Subject: Re: How to set LD_LIBRARY_PATH On Fri, May 28, 2010 at 06:14:38AM -0400, John S

Re: How to set LD_LIBRARY_PATH

2010-05-29 Thread Oscar Gomez
create shell script, first set enviroment variables Oracle then execute script perl jonathan.leff...@gmail.com escribió: The dynamic loader read LD_LIBRARY_PATH when (before?) Perl gets going. AFAIK, it doesn't reread it, so changing it in Perl code is too late unless you set it and exec

Re: How to set LD_LIBRARY_PATH

2010-05-29 Thread Paul Johnson
On Fri, May 28, 2010 at 11:23:32AM -0700, Marilyn Sander wrote: > On May 28, 2010, at 9:33 AM, Paul Johnson wrote: > > > On Fri, May 28, 2010 at 06:14:38AM -0400, John Scoles wrote: > > > >> You will have to set those values before your modules load. > >> > >> So you should stick them in the BE

Re: How to set LD_LIBRARY_PATH

2010-05-29 Thread jonathan . leffler
The dynamic loader read LD_LIBRARY_PATH when (before?) Perl gets going. AFAIK, it doesn't reread it, so changing it in Perl code is too late unless you set it and exec your code again (which is basically saying it is too late). I'm tolerably certain this applies to Solaris; I think it applies

RE: How to set LD_LIBRARY_PATH

2010-05-29 Thread Martin Gainty
sponsabilité pour le contenu fourni. > From: shlo...@iglu.org.il > To: beginners@perl.org > Subject: Re: How to set LD_LIBRARY_PATH > Date: Fri, 28 May 2010 11:06:41 +0300 > CC: newbie01.p...@gmail.com; dbi-us...@perl.org > > On Friday 28 May 2010 10:45:14 newbie01 perl wr

Re: How to set LD_LIBRARY_PATH

2010-05-28 Thread Marilyn Sander
On May 28, 2010, at 9:33 AM, Paul Johnson wrote: > On Fri, May 28, 2010 at 06:14:38AM -0400, John Scoles wrote: > >> You will have to set those values before your modules load. >> >> So you should stick them in the BEGIN and that should work > > ... except where it doesn't, such as on Solaris

Re: How to set LD_LIBRARY_PATH

2010-05-28 Thread Paul Johnson
On Fri, May 28, 2010 at 06:14:38AM -0400, John Scoles wrote: > You will have to set those values before your modules load. > > So you should stick them in the BEGIN and that should work ... except where it doesn't, such as on Solaris for example. Here, LD_LIBRARY_PATH (at least) really does nee

Re: How to set LD_LIBRARY_PATH

2010-05-28 Thread John Scoles
You will have to set those values before your modules load. So you should stick them in the BEGIN and that should work http://www.compuspec.net/reference/language/perl/BEGIN_and_END.shtml cheers John Scoles On Fri, May 28, 2010 at 3:45 AM, newbie01 perl wrote: > Hi all, > > Can someone advise

Re: How to set LD_LIBRARY_PATH

2010-05-28 Thread Shlomi Fish
On Friday 28 May 2010 10:45:14 newbie01 perl wrote: > Hi all, > > Can someone advise how to set LD_LIBRARY_PATH from within the Perl scripts? > > If I set LD_LIBRARY_PATH from the command line, all is okay > > [oracle ~]$ perl -e 'use DBD::Oracle; print $DBD::Oracle::VERSION,"\n";' > Can't load