develooper Front page | perl.perl5.porters | Postings from April 2001

Re: Relocatable perl

Thread Previous | Thread Next
John Peacock
April 30, 2001 13:17
Re: Relocatable perl
Message ID:
Nicholas Clark wrote:
> I wondered whether starting configure time library path with "./" would be
> a good sign that you wanted it relative to something.
> However, "something" may well be "../lib" relative to the directory where
> the perl binary is, so maybe starting with not "/" treats it as relative to
> the directory where the perl binary is.

This would certainly follow the mode of operation of all web servers.  
Relative addresses are always relative to the current file (in this 
case the perl executable itself).  Absolute addresses are always based 
on the domain in question (in this case the root of the server).

If this is the way this goes, I would recommend that it be structured
so that the "standard" *nix install structure have the shortest 
possible path as its default value (presumably this would be "./").
Thus only exceptional installations (be they SITE_LIB on another mount
point or an absolute installations) will have anything else there.

> Is this enough ? It only lets one have libraries in one of
> two places - fixed absolute, or fixed relative to the perl binary.

Isn't that the way Perl installs now:  PERL_LIB and SITE_LIB (if
we ignore the ARCH variants)?  Can't you always run with -I to have
additional locations?

John Peacock

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About