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

Re: Relocatable perl

Thread Previous | Thread Next
From:
Alan Burlison
Date:
April 30, 2001 09:39
Subject:
Re: Relocatable perl
Message ID:
3AED9524.34F777C2@uk.sun.com
Andy Dougherty wrote:

> Putting things on different filesystems is a quite plausible installation
> scenario, I would think.  For example, if the vendor supplies
> /usr/lib/perl5, then it might be worthwhile to have the sitelib stuff
> default to be in an area clearly outside the vendor's control, perhaps
> under /usr/local/lib/perl5. (Debian Linux does this, for example.)

Perhaps it should only twiddle the path if it sees the 'default' (i.e.
compile-time) value of $PREFIX in the config variable, i.e. in perl it would
be something like this:

	$ARCHLIB_EXP =~ s/^$PREFIX/runtimeprefix/e;

> Other sysadmins might feel compelled to put the architecture-independent
> stuff under /usr/share and the arch-dependent stuff elsewhere.

With the above scheme such paths would be left unaltered.

> > Is this really worth the effort?
> 
> It's certainly often requested. :-).

It would however only work on Solaris, unless other platforms have a way of
reliably finding the path to the executable.

Alan Burlison

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About