Front page | perl.perl5.porters |
Postings from April 2001
Re: Relocatable perl
Thread Previous
|
Thread Next
From:
John Peacock
Date:
April 30, 2001 13:17
Subject:
Re: Relocatable perl
Message ID:
3AEDC7FD.3387659A@rowman.com
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