Re: dynamic LD_LIBRARY_PATH

"H.Merijn Brand" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <[email protected]>
On Wed, 16 Apr 2014 17:06:19 +0200, "H.Merijn Brand"
<[email protected]> wrote:

> if I change Oracle.pm to start with
> --8<---
> BEGIN {
>     use Config;
>     (my $loc = $INC{"DBD/Oracle.pm"}) =~
> 	s{/DBD/Oracle.pm$}{/$Config{archname}/auto/DBD/Oracle};
>     $ENV{LD_LIBRARY_PATH} = "$oloc:$ENV{LD_LIBRARY_PATH}";
>     $ENV{SHLIB_PATH}      = "$oloc:$ENV{SHLIB_PATH}";
>     }
> -->8---
> 
> I am still too late :( :(

Now readable (I hope)

even then I get conflicts with 10g:

$ export LDLP=/pro/asql/o83R/lib/perl/5.14.2/IA64.ARCHREV_0-LP64-ld/auto/DBD/Oracle:/pro/oracle/ic121/lib
$ env LD_LIBRARY_PATH=$LDLP:$LD_LIBRARY_PATH SHLIB_PATH=$LDLP:$SHLIB_PATH script.pl
connect('','USER',...) failed: ERROR OCIEnvNlsCreate. Check ORACLE_HOME (Linux) env var  or PATH (Windows) and or NLS settings, permissions, etc.
at /pro/lib/perl5/site_perl/5.14.2/IA64.ARCHREV_0-LP64-ld/PROCURA/DBD.pm
line 335.

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.19   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.