Mailing List Archive

environmental variable problem...
Re: environmental variable problem... [ In reply to ]
> From: epeschko@animas.tcinc.com (Ed Peschko)
>
> hey all --
>
> I have the following problem -- which seems to be a bug (you decide!)

It's not a bug.

> For dynamically linked modules such as sybperl which interface with such items
> as the DBLIBRARY -- the environmental variable LD_LIBRARY_PATH is used to
> figure out 'on the fly' where the DBLIBRARY is.
>
> Now it so happened that in an upgrade, the sybase libraries moved around... and
> now we *need* (for various reasons) to set LD_LIBRARY_PATH to run.
>
> (Recompiling perl to be statically linked, or dynamically linked with the
> updated is not an option unfortunately, for various reasons)

You can recompile the extensions with LD_RUN_PATH set.

A newer MakeMaker does that for you (or at least helps).

> 3) $ENV{'LD_LIBRARY_PATH'} = "/new/sybase/place";
> which does not work..

Might have worked if enclosed in a BEGIN { ... } block before the use.

Tim.