Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

How to determine $(DY)LD_LIBRARY_(PATH)

by rvosa (Curate)
on Feb 02, 2007 at 00:48 UTC ( #597862=perlquestion: print w/replies, xml ) Need Help??

rvosa has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks,

how might I find out what the library path variable is called on any given OS? I.e. how can I figure out the name of the env variable, $DYLD_LIBRARY_PATH or $LD_LIBRARY_PATH or %PATH%, that points at shared libraries (e.g. /usr/local/lib)?

Thanks!
  • Comment on How to determine $(DY)LD_LIBRARY_(PATH)

Replies are listed 'Best First'.
Re: How to determine $(DY)LD_LIBRARY_(PATH)
by merlyn (Sage) on Feb 02, 2007 at 00:51 UTC
      Never mind, I got it - I needed $Config{ldlibpthname}. Thanks!
      Here's the problem: I have to write out a configuration file that, after building expat, points to where the libraries are installed - and do so portably, so that on an OS that uses $LD_LIBRARY_PATH it'll write:
      LD_LIBRARY_PATH=/path/to/expat:$LD_LIBRARY_PATH; export LD_LIBRARY_PAT +H

      ...and on OS's that use $DYLD_LIBRARY_PATH the same thing, and on windows a similar manipulation of %PATH%.

      hi, actually I am not very fond of the term XY problem, as I find it misleading in the sense it is an old and important problem of mathematical physics. It is true that xy with no other context could make one think of correlation, but here it's the absence of "correlation" that is emphasized.
      I would call it a "WHY not X" problem ;)

      cheers --stephan maybe I am biased, I used to be a theoretical physicist ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://597862]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-11-27 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?