|
|
sybperl-l Archive
Up Prev Next
From: "Christopher Jack" <jackc at rabo-bank dot com>
Subject: Re: LD_LIBRARY_PATH on Solaris
Date: Sep 16 1998 10:05AM
How about this:
Create a file called something like /someplace/my_perl:
#!/bin/sh
LD_LIBRARY_PATH=/opt/local/sybase/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
/someplace/perl -S $@
Your perl script header then looks like:
eval 'exec /someplace/my_perl $0 "$@"'
if $running_under_some_shell;
Chris Jack (jackc@rabo-bank.com)
----------
>
> > Why do you need LD_LIBRARY_PATH in the first place?
>
> I do not need LD_LIBRARY_PATH, but i do have some users which will have it.
>
> > My advice is to remove /usr/lib from LD_LIBRARY_PATH.
>
> That's only possible if i write a shell-wrapper for every sybperl
> script which strips the path out.
>
> My intention is to write robust scripts which will work with or without
> the LD_LIBRARY_PATH set.
>
> Can somebody tell me why this BEGIN doesn't work?
>
> > > BEGIN {
> > > # Mandatory settings for the Sybase CTLib package
> > > # This instructions have to be executed before the
> > > # package CTLib is loaded!
> > >
> $ENV{'LD_LIBRARY_PATH'}="/opt/local/sybase/lib:".$ENV{LD_LIBRARY_PATH};
> > > $ENV{'SYBASE'}="/opt/local/sybase";
> > > }
>
> /Thomas
>
> --
> Thomas Klein Network Administrator, EED/I
> Ericsson Eurolab Deutschland GmbH Email: eedtok@eed.ericsson.se
> Ericsson Allee 1 Phone: +49 2407 575 425
> D-52134 Herzogenrath Fax : +49 2407 575 150
> Germany Memo : EED.EEDTOK
>
|