Re: Problem using LD_LIBRARY_PATH in perl script

nobull_at_mail.com
Date: 11/25/03


Date: 25 Nov 2003 09:53:31 -0800

c-eriks@algonet.se (Christian Eriksson) wrote in message news:<d0d6f67c.0311241452.785fbbac@posting.google.com>...
> I have a problem using the environment variable LD_LIBRARY_PATH in my
> perl script. Everything works fine when I set it at the command prompt

 [ but if one...]

> ...instead adds a row setting LD_LIBRARY_PATH in the perl script

> Perhaps a required shared library or dll isn't installed where
> expected

> Why does this happen?

When you set $ENV{LD_LIBRARY_PATH} do you do so before (that's
cronologically before, not lexically before) you try to load the
library? (Remember the Perl use() is compile-time).

IIRC on some platforms I think LD_LIBRARY_PATH is read from the
environment as the program loads and subsequent changes are ignored.

> This is perl, v5.6.1 built for sun4-solaris

I vaguely recall Solaris is such a platform.

This newsgroup does not exist (see FAQ). Please do not start threads
here.



Relevant Pages

  • Re: VS 2005 Beta2 command line build
    ... Hmm...looks like through my perl script it seems to wait for ... completion whereas the command prompt it didn't. ... >I am upgrading from VS6/eVC and have a custom auto-build script that I ... I did notice that devenv returns right away and spawns ...
    (microsoft.public.vsnet.general)
  • RE: Automation
    ... But here i am using Windows XP operating system ... Is it possible to run a perl script at defined time interval without ... cliking over the scipt and using command prompt. ... To unsubscribe, e-mail: beginners-unsubscr...@xxxxxxxx ...
    (perl.beginners)
  • Re: extract data files from xp using perl script
    ... We currently use a perl script ... to extract data files on other platforms. ... I am wondering what people are using from other platforms to copy data ...
    (microsoft.public.windowsxp.general)
  • Re: Automation
    ... I am begineer to perl language. ... Want help for the automation of the ... Is it possible to run a perl script at defined time interval without ... cliking over the scipt and using command prompt. ...
    (perl.beginners)
  • Problem using LD_LIBRARY_PATH in perl script
    ... Everything works fine when I set it at the command prompt ... and then runs my perl script like this: ... presto1@S0222035> echo $LD_LIBRARY_PATH ... and instead adds a row setting LD_LIBRARY_PATH in the perl script ...
    (comp.lang.perl)