On Thu Feb 20 08:47:57 2014, MJEVANS wrote:
Show quoted text> On Thu Feb 20 08:43:06 2014, NEILB wrote:
> > I wonder if the problem is that I've hardcoded the #! path as
> >
> > /usr/local/bin/perl
> >
> > Have you got two different perls installed, and one was used to run
> > cpan, but when you run the script it's running the other?
> >
> > I'll fix the path in the scripts for the next release anyway.
>
> I do have multiple perls - the system one and a perlbrew.
>
> Let me do it from scratch and see if I can spot why.
>
> Martin
perlbrew install perl-5.19.9
$ perlbrew list
* perl-5.18.2
perl-5.19.9
$ perlbrew switch perl-5.19.9
$ perl --version
This is perl 5, version 19, subversion 9 (v5.19.9) built for x86_64-linux
$ perl -MCPAN -eshell
<loads of stuff installed here>
NEILB/CPAN-ReleaseHistory-0.04.tar.gz
Has already been prepared
Running make for N/NE/NEILB/CPAN-ReleaseHistory-0.04.tar.gz
Warning: Prerequisite 'PerlIO::gzip => 0' for 'NEILB/CPAN-ReleaseHistory-0.04.tar.gz' failed when processing 'NWCLARK/PerlIO-gzip-0.18.tar.gz' with 'writemakefile => NO '/home/martin/perl5/perlbrew/perls/perl-5.19.9/bin/perl5.19.9 Makefile.PL INSTALLDIRS=site' returned status 65280'. Continuing, but chances to succeed are limited.
cp lib/CPAN/ReleaseHistory/Release.pm blib/lib/CPAN/ReleaseHistory/Release.pm
cp lib/CPAN/ReleaseHistory.pm blib/lib/CPAN/ReleaseHistory.pm
cp lib/CPAN/ReleaseHistory/ReleaseIterator.pm blib/lib/CPAN/ReleaseHistory/ReleaseIterator.pm
cp bin/cpan-release-counts blib/script/cpan-release-counts
/home/martin/perl5/perlbrew/perls/perl-5.19.9/bin/perl5.19.9 -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/cpan-release-counts
Manifying blib/man1/cpan-release-counts.1
Manifying blib/man3/CPAN::ReleaseHistory.3
NEILB/CPAN-ReleaseHistory-0.04.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /home/martin/perl5/perlbrew/perls/perl-5.19.9/bin/perl5.19.9 "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01-release-iterator.t .. Can't locate PerlIO/gzip.pm in @INC (you may need to install the PerlIO::gzip module) (@INC contains: /home/martin/.cpan/build/CPAN-ReleaseHistory-0.04-whtSXb/blib/lib /home/martin/.cpan/build/CPAN-ReleaseHistory-0.04-whtSXb/blib/arch /home/martin/perl5/perlbrew/perls/perl-5.19.9/lib/site_perl/5.19.9/x86_64-linux /home/martin/perl5/perlbrew/perls/perl-5.19.9/lib/site_perl/5.19.9 /home/martin/perl5/perlbrew/perls/perl-5.19.9/lib/5.19.9/x86_64-linux /home/martin/perl5/perlbrew/perls/perl-5.19.9/lib/5.19.9 .) at /home/martin/.cpan/build/CPAN-ReleaseHistory-0.04-whtSXb/blib/lib/CPAN/ReleaseHistory.pm line 12.
BEGIN failed--compilation aborted at /home/martin/.cpan/build/CPAN-ReleaseHistory-0.04-whtSXb/blib/lib/CPAN/ReleaseHistory.pm line 12.
Compilation failed in require at t/01-release-iterator.t line 8.
BEGIN failed--compilation aborted at t/01-release-iterator.t line 8.
# Looks like your test exited with 2 before it could output anything.
t/01-release-iterator.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 3/3 subtests
t/02-well-formed.t ....... Can't locate PerlIO/gzip.pm in @INC (you may need to install the PerlIO::gzip module) (@INC contains: /home/martin/.cpan/build/CPAN-ReleaseHistory-0.04-whtSXb/blib/lib /home/martin/.cpan/build/CPAN-ReleaseHistory-0.04-whtSXb/blib/arch /home/martin/perl5/perlbrew/perls/perl-5.19.9/lib/site_perl/5.19.9/x86_64-linux /home/martin/perl5/perlbrew/perls/perl-5.19.9/lib/site_perl/5.19.9 /home/martin/perl5/perlbrew/perls/perl-5.19.9/lib/5.19.9/x86_64-linux /home/martin/perl5/perlbrew/perls/perl-5.19.9/lib/5.19.9 .) at /home/martin/.cpan/build/CPAN-ReleaseHistory-0.04-whtSXb/blib/lib/CPAN/ReleaseHistory.pm line 12.
BEGIN failed--compilation aborted at /home/martin/.cpan/build/CPAN-ReleaseHistory-0.04-whtSXb/blib/lib/CPAN/ReleaseHistory.pm line 12.
Compilation failed in require at t/02-well-formed.t line 8.
BEGIN failed--compilation aborted at t/02-well-formed.t line 8.
# Looks like your test exited with 2 before it could output anything.
t/02-well-formed.t ....... Dubious, test returned 2 (wstat 512, 0x200)
Failed 3/3 subtests
Test Summary Report
-------------------
t/01-release-iterator.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 3 tests but ran 0.
t/02-well-formed.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 3 tests but ran 0.
Files=2, Tests=0, 0 wallclock secs ( 0.01 usr 0.01 sys + 0.12 cusr 0.00 csys = 0.14 CPU)
Result: FAIL
Failed 2/2 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 2
NEILB/CPAN-ReleaseHistory-0.04.tar.gz
one dependency not OK (PerlIO::gzip); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports NEILB/CPAN-ReleaseHistory-0.04.tar.gz
Failed during this command:
NWCLARK/PerlIO-gzip-0.18.tar.gz : writemakefile NO '/home/martin/perl5/perlbrew/perls/perl-5.19.9/bin/perl5.19.9 Makefile.PL INSTALLDIRS=site' returned status 65280
NEILB/CPAN-ReleaseHistory-0.04.tar.gz : make_test NO one dependency not OK (PerlIO::gzip); additionally test harness failed
This is probably the problem:
Appending installation info to /home/martin/perl5/perlbrew/perls/perl-5.19.9/lib/5.19.9/x86_64-linux/perllocal.pod
ADAMK/File-HomeDir-1.00.tar.gz
sudo /usr/bin/make install -- OK
Running install for module 'PerlIO::gzip'
Checksum for /home/martin/.cpan/sources/authors/id/N/NW/NWCLARK/PerlIO-gzip-0.18.tar.gz ok
Configuring N/NW/NWCLARK/PerlIO-gzip-0.18.tar.gz with Makefile.PL
Use of uninitialized value $Config{"usesfio"} in string eq at Makefile.PL line 7.
You need perl 5.8.0 or later, configured to use perlio (and not to use sfio)
Warning: No success on command[/home/martin/perl5/perlbrew/perls/perl-5.19.9/bin/perl5.19.9 Makefile.PL INSTALLDIRS=site]
NWCLARK/PerlIO-gzip-0.18.tar.gz
/home/martin/perl5/perlbrew/perls/perl-5.19.9/bin/perl5.19.9 Makefile.PL INSTALLDIRS=site -- NOT OK
Running install for module 'HTTP::Date'
Checksum for /home/martin/.cpan/sources/authors/id/G/GA/GAAS/HTTP-Date-6.02.tar.gz ok
Configuring G/GA/GAAS/HTTP-Date-6.02.tar.gz with Makefile.PL
Checking if your kit is complete...
So it looks like nothing to do with your module.
Sorry, for noise. By all means close this rt down.
Martin
--
Martin J. Evans
Wetherby, UK