On Mon, 2 Apr 2001, 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]"
>
> I think it would be
>
> @Configure "-d" "-Dprefix=dra0:[perl5]"
Unfortunately, that won't work without the rooted logical name .] at the
end owing to the design philosophy that "the user always knows what they
are doing"(tm):
$ IF F$TYPE(prefix) .EQS. ""
$ THEN
$ prefix = F$ENVIRONMENT("DEFAULT") - ".UU]" + "]"
$ prefix = F$PARSE(prefix,,,,"NO_CONCEAL") - "][" - ".;"
$ prefixbase = prefix - "]"
$ prefix = prefixbase + ".]"
$ ENDIF
$ src = prefix
$!: determine root of directory hierarchy where package will be installed.
$ dflt = prefix
Hence if you didn't specify "dra0:[perl5.]" for the prefix value the
perl_setup.com may try to do the following:
$ define/translation=concealed perl_root dra3:[perl5]
which is non-rooted.
> though I confess I've never tried it. I just build and test, then edit
> perl_setup.com so that its definition of PERL_ROOT points where I want it,
> then finally install.
I have successfully tested configurations of the form:
@Configure "-d" "-Dprefix=dra0:[perl5.]"
and did not have to edit the perl_setup.com file to do so.
Peter Prymmer