[Info-vax] Perl (for OpenSSL) v. me

richard at levitte.org richard at levitte.org
Thu Feb 11 22:57:17 EST 2016


Den fredag 5 februari 2016 kl. 05:54:06 UTC+1 skrev Steven Schweda:
>    The OpenSSL builders require one particular package:
> 
> ALP $ perl Configure vms-alpha
> Can't locate Text/Template.pm in @INC (you may need to install the
>  Text::Template module) (@INC contains: /perl_root/lib/site_perl/VMS_AXP
>  /perl_root/lib/site_perl /perl_root/lib/VMS_AXP/5_22_1 /perl_root/lib
>  .) at Configure line 1248.
> BEGIN failed--compilation aborted at Configure line 1248.
> %SYSTEM-F-ABORT, abort

I was a bit surprised to read this a few days ago but didn't get around to figure it out before now.  I s'pose that you've unpacked with VMSTAR (yes of course you have), which converts periods in directory names to underscores, even on ODS-5 disks (I just discovered)...

You see, Text::Template is bundled in the source, exactly so our users won't have to install unless they really want to, and we have a fallback mechanism that uses the bundled stuff if it isn't installed on the local system.  However, it's an unpack of a downloaded tarball, and Perl module are notorious for having a version number in the unpack directory (just like everyone else).

So, suffice to say that our fallback mechanism (roughly) used this to point at the bundled location:

    use lib $srctop."external/perl/Text-Template-1.46/lib";

... yeah, you can see what went wrong.  I've just committed a change (pending review) that adds this line:

    use lib $srctop."external/perl/Text-Template-1_46/lib";

and voilà, it uses the fallback on this VMS box where Text::Template isn't globally installed.

Cheers,
Richard



More information about the Info-vax mailing list