I want to install modules like Getopt::ArgvFile (1.06), which asks me for Test::Harness => 1.25. (It also asks for Test::More, now IIUC part of Test::Simple, which requires Test::Harness => 2.03.)
So it looks like I need tu upgrade Test::Harness. Now I'd rather leave the stock perl untouched (like Fink does), so I try to set things up in a separate "/Volumes/Unix/usrlocal" dir:
% setenv PERL5LIB /Volumes/Unix/usrlocal/lib/perl5 % perl Makefile.PL `cat ~/.perl_inst_dirs`
where
% cat ~/.perl_inst_dirs PREFIX=/Volumes/Unix/usrlocal \ INSTALLPRIVLIB=/Volumes/Unix/usrlocal/lib/perl5 \ INSTALLARCHLIB=/Volumes/Unix/usrlocal/lib/perl5/darwin \ INSTALLSITELIB=/Volumes/Unix/usrlocal/lib/perl5 \ INSTALLSITEARCH=/Volumes/Unix/usrlocal/lib/perl5/darwin \ INSTALLMAN1DIR=/Volumes/Unix/usrlocal/share/man/man1 \ INSTALLMAN3DIR=/Volumes/Unix/usrlocal/share/man/man3
This works fine to install any CPAN versions of Test::Harness (2.03 is the oldest I see) and Test::Simple (=> 0.42). But then I get:
[localhost:~/Getopt-ArgvFile-1.06] fz% perl Makefile.PL `cat ~/.perl_inst_dirs` Checking if your kit is complete... Looks good Writing Makefile for Getopt::ArgvFile [localhost:~/Getopt-ArgvFile-1.06] fz% make mkdir blib mkdir blib/lib mkdir blib/lib/Getopt mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/Getopt mkdir blib/arch/auto/Getopt/ArgvFile mkdir blib/lib/auto mkdir blib/lib/auto/Getopt mkdir blib/lib/auto/Getopt/ArgvFile mkdir blib/man3 cp ArgvFile.pm blib/lib/Getopt/ArgvFile.pm Manifying blib/man3/Getopt::ArgvFile.3 [localhost:~/Getopt-ArgvFile-1.06] fz% make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/base..............FAILED tests 1-5 Failed 5/5 tests, 0.00% okay t/prefix............FAILED tests 1-2 Failed 2/2 tests, 0.00% okay Failed Test Status Wstat Total Fail Failed List of failed
------------------------------------------------------------------------------- t/base.t 5 5 100.00% 1-5 t/prefix.t 2 2 100.00% 1-2 Failed 2/2 test scripts, 0.00% okay. 7/7 subtests failed, 0.00% okay. make: *** [test_dynamic] Error 255
So, is it at this point using the correct Test::Harness? If yes, what am I doing wrong? If no, what am I doing wrong?