On Mon, 2 Apr 2001, John Peacock wrote:
> Doh! prefix not perl_root.
>
> Thanks Craig and Peter...
>
> John Peacock
>
> "Craig A. Berry" wrote:
> >
> > At 04:34 PM 4/2/2001 -0400, John Peacock wrote:
> > >I would like to build Perl 5.6.1 with the defaults, except that I would
> > >like to override PERL_ROOT. I tried the obviously wrong invocation:
> > >
> > > @Configure "-d" "-DPERL_ROOT=DRA0:[PERL5]"
We are open to suggestions about how to re-write any of this. One might
imagine doing:
$ IF F$TRNLNM("PERL_ROOT") .NES. "" THEN dflt = F$TRNLNM("PERL_ROOT")
however, that could lead to trouble if you did not do:
$ delete perl_root:[000000...]*.*;*
before your `mms install` step (the scenario I have in mind is picking
up an older version of a module that gets installed on the later version
of perl on VMS in a place where the @INC array sees the prior version
before the later version).
The current way of setting the default $prefix value is based on the older
notion that there was no installperl script that worked on VMS. One might
argue that setting perl_root to some place in SYS$LIBRARY would be the
proper "dflt" for VMS, although anyone who wanted to install perl without
write access to SYS$LIBRARY would then be forced to specify
"-Dprefix=MY:[PRIVATE_INSTALL.]" and they currently do not have to do so
(if you were able to unpack the tar ball then you at least have write
access to the build location).
Peter Prymmer