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

Craig A. Berry craigberry at nospam.mac.com
Fri Feb 5 09:44:33 EST 2016


On 2/4/16 10:54 PM, Steven Schweda wrote:
>     The new OpenSSL builders rely on a modern Perl.

>
>     And the OpenSSL docs suggest the following as a remedy:
>
>        cpan -f -i "Text::Template"
>
> This was not a roaring success:


It was for me with the 5.22.1 binary kit installed:

$ cpan -i Text::Template
Loading internal null logger. Install Log::Log4perl for logging messages
Reading 'D0:[CRAIG._cpan]Metadata'
   Database was generated on Thu, 03 Dec 2015 19:17:02 GMT
Fetching with HTTP::Tiny:
http://cpan.mirrors.tds.net/authors/01mailrc.txt.gz
Reading 'D0:[CRAIG._cpan.sources.authors]01mailrc.txt.gz'
............................................................................DONE
Fetching with HTTP::Tiny:
http://cpan.mirrors.tds.net/modules/02packages.details.txt.gz
Reading 'D0:[CRAIG._cpan.sources.modules]02packages.details.txt.gz'
   Database was generated on Fri, 05 Feb 2016 06:17:02 GMT
   HTTP::Date not available
............................................................................DONE
Fetching with HTTP::Tiny:
http://cpan.mirrors.tds.net/modules/03modlist.data.gz
Reading 'D0:[CRAIG._cpan.sources.modules]03modlist.data.gz'
DONE
Writing D0:[CRAIG._cpan]Metadata
Running install for module 'Text::Template'
Fetching with HTTP::Tiny:
http://cpan.mirrors.tds.net/authors/id/M/MJ/MJD/Text-Template-1.46.tar.gz
Fetching with HTTP::Tiny:
http://cpan.mirrors.tds.net/authors/id/M/MJ/MJD/CHECKSUMS
Checksum for 
D0:[CRAIG._cpan.sources.authors.id.M.MJ.MJD]Text-Template-1.46.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring M/MJ/MJD/Text-Template-1.46.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a MMK-style Descrip.MMS
Writing Descrip.MMS for Text::Template
Writing MYMETA.yml and MYMETA.json
   MJD/Text-Template-1.46.tar.gz
   DSA0:[SYS0.SYSCOMMON.perl-5_22.][000000]perl.exe;1 Makefile.PL -- OK
Running make for M/MJ/MJD/Text-Template-1.46.tar.gz
cp [.lib.Text.Template]Preprocess.pm [.blib.lib.Text.Template]Preprocess.pm
cp [.lib.Text]Template.pm [.blib.lib.Text]Template.pm
   MJD/Text-Template-1.46.tar.gz
   MMK -- OK
Running make test
MCR DSA0:[SYS0.SYSCOMMON.perl-5_22]perl.exe.1 "-MExtUtils::Command::MM" 
"-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 
'[.blib.lib]', '[.blib.arch]')" t/*.t
t/00-version.t ..... ok
t/01-basic.t ....... ok
t/02-hash.t ........ ok
t/03-out.t ......... ok
t/04-safe.t ........ ok
t/05-safe2.t ....... ok
t/06-ofh.t ......... ok
t/07-safe3.t ....... ok
t/08-exported.t .... ok
t/09-error.t ....... ok
t/10-delimiters.t .. ok
t/11-prepend.t ..... ok
t/12-preprocess.t .. ok
t/13-taint.t ....... ok
t/14-broken.t ...... ok
All tests successful.
Files=15, Tests=150,  7 wallclock secs ( 0.64 usr +  0.00 sys =  0.64 CPU)
Result: PASS
   MJD/Text-Template-1.46.tar.gz
   MMK test -- OK
Running make install
Installing perl_root:[lib.site_perl.Text]Template.pm
Installing perl_root:[lib.site_perl.Text.Template]Preprocess.pm
Appending installation info to perl_root:[lib.VMS_IA64.5_22_1]perllocal.pod
%MMK-I-ACTNOUPD, action did not update target INSTALL
%MMK-I-ACTNOUPD, action did not update target INSTALL
   MJD/Text-Template-1.46.tar.gz
   MMK install  -- OK

I think the obvious difference from your set-up is that I already have
CPAN configured, and have had for some time, so if something broke in
first-time configuration, I wouldn't see it. The configuration is just a
text file located at [._cpan.CPAN]MyConfig.pm with a Perl data structure
in it, so the easiest way to fix it, given the interactive tool is not
working right, might just be to start with a working one and edit it to
your heart's content. Here's what mine looks like -- just replace
"DISK$USER" and "[me." with appropriate local values:

$CPAN::Config = {
   'applypatch' => q[],
   'auto_commit' => q[0],
   'build_cache' => q[100],
   'build_dir' => q[DISK$USER:[ME._cpan.build]],
   'build_dir_reuse' => q[0],
   'build_requires_install_policy' => q[yes],
   'bzip2' => q[],
   'cache_metadata' => q[1],
   'check_sigs' => q[0],
   'colorize_output' => q[0],
   'commandnumber_in_prompt' => q[1],
   'connect_to_internet_ok' => q[1],
   'cpan_home' => q[DISK$USER:[ME._cpan]],
   'curl' => q[],
   'ftp' => q[],
   'ftp_passive' => q[1],
   'ftp_proxy' => q[],
   'getcwd' => q[cwd],
   'gpg' => q[],
   'gzip' => q[],
   'halt_on_failure' => q[0],
   'histfile' => q[DISK$USER:[ME._cpan]histfile],
   'histsize' => q[100],
   'http_proxy' => q[],
   'inactivity_timeout' => q[0],
   'index_expire' => q[1],
   'inhibit_startup_message' => q[0],
   'keep_source_where' => q[DISK$USER:[ME._cpan.sources]],
   'load_module_verbosity' => q[none],
   'lynx' => q[],
   'make' => q[],
   'make_arg' => q[],
   'make_install_arg' => q[],
   'make_install_make_command' => q[],
   'makepl_arg' => q[],
   'mbuild_arg' => q[],
   'mbuild_install_arg' => q[],
   'mbuild_install_build_command' => q[@Build.com],
   'mbuildpl_arg' => q[],
   'ncftp' => q[],
   'ncftpget' => q[],
   'no_proxy' => q[],
   'pager' => q[more],
   'patch' => q[],
   'perl5lib_verbosity' => q[none],
   'prefer_external_tar' => q[0],
   'prefer_installer' => q[MB],
   'prefs_dir' => q[DISK$USER:[ME._cpan.prefs]],
   'prerequisites_policy' => q[follow],
   'scan_cache' => q[atstart],
   'shell' => undef,
   'show_unparsable_versions' => q[0],
   'show_upload_date' => q[0],
   'show_zero_versions' => q[0],
   'tar' => q[],
   'tar_verbosity' => q[none],
   'term_is_latin' => q[1],
   'term_ornaments' => q[1],
   'test_report' => q[0],
   'trust_test_report_history' => q[0],
   'unzip' => q[disk$user:[util.zip]unzip.exe],
   'urllist' => [q[http://cpan.mirrors.tds.net/], 
q[http://cpan.cse.msu.edu/], q[http://httpupdate23.cpanel.net/CPAN/]],
   'use_sqlite' => q[0],
   'version_timeout' => q[15],
   'wget' => q[],
   'yaml_load_code' => q[0],
   'yaml_module' => q[YAML],
};
1;
__END__

Or for your immediate problem, you can forget about CPAN and just get
the Text::Template tarball from:

http://search.cpan.org/CPAN/authors/id/M/MJ/MJD/Text-Template-1.46.tar.gz

unpack it, and run:

$ perl Makefile.PL
$ mmk
$ mmk test
$ mmk install


 >     I tried subscribing to vmsperl-subscribe at perl.org, but got
 > no prompt response.  (I could be blocking something, but
 > e-mail from addresses near perl.org should be getting
 > through.)

There is moderation and it can take a day or three for the volunteers
who run the lists to approve requests. At least that's my best guess
about what's going on.

 >     So, I'm open to suggestions on how to get a working Perl
 > with  "Text::Template", so that I can get onto the next
 > failure.

So you now have two ways. If you get really desperate, here's a third.
Text::Template is quite a simple module and only has two files in it
that do any real business. You can take them from the tarball and copy
them to their canonical locations below, replacing VMS_IA64 with VMS_AXP
in directory names if running on Alpha and granting world RE access:

$ dir/col=1/nohead/notrail perl_root:[lib.site_perl...]
PERL_ROOT:[lib.site_perl]Text.DIR;1
PERL_ROOT:[lib.site_perl]VMS_IA64.DIR;1
PERL_ROOT:[lib.site_perl.Text]Template.DIR;1
PERL_ROOT:[lib.site_perl.Text]Template.pm;1
PERL_ROOT:[lib.site_perl.Text.Template]Preprocess.pm;1
PERL_ROOT:[lib.site_perl.VMS_IA64]auto.DIR;1
PERL_ROOT:[lib.site_perl.VMS_IA64.auto]Text.DIR;1
PERL_ROOT:[lib.site_perl.VMS_IA64.auto.Text]Template.DIR;1
PERL_ROOT:[lib.site_perl.VMS_IA64.auto.Text.Template].packlist;1

The .packlist file is just a list of the other files installed:

$ type PERL_ROOT:[lib.site_perl.VMS_IA64.auto.Text.Template].packlist
perl_root:[lib.site_perl.Text.Template]Preprocess.pm
perl_root:[lib.site_perl.Text]Template.pm




More information about the Info-vax mailing list