Posted on 2009-06-09 18:34:56-07 by ricmarques
Errors installing HTTP::OAI v3.21

Hi,

I'm getting several errors (failed tests) when trying to install HTTP::OAI (version 3.21) from CPAN in a Linux machine running SLES11 (SUSE Linux Enterprise Server 11), that has Perl 5.10

The computer is behind a web proxy, but the proxy is set up in /usr/lib/perl5/5.10.0/CPAN/Config.pm (in the "http_proxy" key/value pair) and other module installations from CPAN work correctly.

Here's the output for this installation of HTTP-OAI in SLES 11 from CPAN:

---------------------------------------- cpan[1]> install HTTP::OAI Running install for module 'HTTP::OAI' Running make for T/TI/TIMBRODY/HTTP-OAI-3.21.tar.gz Has already been unwrapped into directory /root/.cpan/build/HTTP-OAI-3.21-XERNIH Has already been made Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/a +rch')" t/*.t t/00static.t ............. 1/20 Use of uninitialized value in string eq at t/00static.t line 16. # Failed test 3 in t/00static.t at line 16 # t/00static.t line 16 is: ok($repo->Identify->version eq '2.0s'); # Failed test 4 in t/00static.t at line 22 # t/00static.t line 22 is: ok($id->is_success); # Failed test 5 in t/00static.t at line 23 # t/00static.t line 23 is: ok($id->repositoryName && $id->repositoryName eq 'Demo repository'); # Failed test 6 in t/00static.t at line 27 # t/00static.t line 27 is: ok($lmdf->is_success); # Failed test 7 in t/00static.t at line 28 # t/00static.t line 28 is: ok(my $mdf = $lmdf->next); # Failed test 8 in t/00static.t at line 29 # t/00static.t line 29 is: ok($mdf && $mdf->metadataPrefix && $mdf->metadataPrefix eq 'oai_dc'); # Failed test 9 in t/00static.t at line 33 # t/00static.t line 33 is: ok($lr->is_success); # Failed test 10 in t/00static.t at line 35 # t/00static.t line 35 is: ok($rec && $rec->identifier && $rec->identifier eq 'oai:arXiv:cs/011201 +7'); # Failed test 11 in t/00static.t at line 39 # t/00static.t line 39 is: ok($li->is_success); # Failed test 12 in t/00static.t at line 41 # t/00static.t line 41 is: ok(@recs && $recs[-1]->identifier eq 'oai:perseus:Perseus:text:1999.02. +0084'); # Failed test 13 in t/00static.t at line 45 # t/00static.t line 45 is: ok($ls->is_success); # Failed test 14 in t/00static.t at line 47 # t/00static.t line 47 is: ok(@errs && $errs[-1]->code eq 'noSetHierarchy'); # Failed test 15 in t/00static.t at line 51 # t/00static.t line 51 is: ok($gr->is_success); # Failed test 16 in t/00static.t at line 53 # t/00static.t line 53 is: ok($rec && $rec->identifier eq 'oai:perseus:Perseus:text:1999.02.0084') +; # Failed test 18 in t/00static.t at line 59 # t/00static.t line 59 is: ok(@errs && $errs[0]->code eq 'idDoesNotExist'); # Failed test 20 in t/00static.t at line 64 # t/00static.t line 64 is: ok(@errs && $errs[0]->code eq 'cannotDisseminateFormat'); t/00static.t ............. Failed 16/20 subtests t/01parse.t .............. 1/4 # Failed test at t/01parse.t line 18. Can't call method "metadata" on an undefined value at t/01parse.t line 19. # Looks like you planned 4 tests but ran 2. # Looks like you failed 1 test of 2 run. # Looks like your test exited with 9 just after 2. t/01parse.t .............. Dubious, test returned 9 (wstat 2304, 0x900) Failed 3/4 subtests t/02token.t .............. ok t/50mets.t ............... 1/3 Can't call method "metadata" on an undefined value at t/50mets.t lin +e 20. # Looks like you planned 3 tests but ran 1. # Looks like your test exited with 9 just after 1. t/50mets.t ............... Dubious, test returned 9 (wstat 2304, 0x900) Failed 2/3 subtests t/80network.t ............ ok t/error.t ................ ok t/getrecord.t ............ 1/8 Can't call method "metadata" on an undefined value at t/getrecord.t +line 72. # Looks like you planned 8 tests but ran 6. # Looks like your test exited with 2 just after 6. t/getrecord.t ............ Dubious, test returned 2 (wstat 512, 0x200) Failed 2/8 subtests t/identify.t ............. 1/8 # Test 7 got: <UNDEF> (t/identify.t at line 32) # Expected: "mailto:tdb01r@ecs.soton.ac.uk" # t/identify.t line 32 is: ok($r->adminEmail,'mailto:tdb01r@ecs.soton.ac.uk'); t/identify.t ............. Failed 1/8 subtests t/listidentifiers.t ...... ok t/listmetadataformats.t .. ok Test Summary Report ------------------- t/00static.t (Wstat: 0 Tests: 20 Failed: 16) Failed tests: 3-16, 18, 20 t/01parse.t (Wstat: 2304 Tests: 2 Failed: 1) Failed test: 2 Non-zero exit status: 9 Parse errors: Bad plan. You planned 4 tests but ran 2. t/50mets.t (Wstat: 2304 Tests: 1 Failed: 0) Non-zero exit status: 9 Parse errors: Bad plan. You planned 3 tests but ran 1. t/getrecord.t (Wstat: 512 Tests: 6 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 8 tests but ran 6. t/identify.t (Wstat: 0 Tests: 8 Failed: 1) Failed test: 7 Files=10, Tests=54, 4 wallclock secs ( 0.05 usr 0.10 sys + 3.10 cusr 0.71 csys = 3.96 CPU) Result: FAIL Failed 5/10 test programs. 18/54 subtests failed. make: *** [test_dynamic] Error 255 TIMBRODY/HTTP-OAI-3.21.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports TIMBRODY/HTTP-OAI-3.21.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: TIMBRODY/HTTP-OAI-3.21.tar.gz : make_test NO ----------------------------------------

Can anyone provide some hints / comments regarding this, please?

Thanks in advance!

Best wishes,
Ricardo Dias Marques
cpan AT ricmarques DOT net

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.