[Koha] Problems installing HTTP::OAI from CPAN for Koha 3.0.2
Ricardo Dias Marques
lists at ricmarques.net
Tue Jun 9 04:10:28 NZST 2009
Hi everyone!
So, I see that Koha 3.0.2 has been released some days ago (on
4-Jun-2009). Congratulations to everyone involved! :)
Today (08-Jun-2009), I tried to update an install of Koha 3.0.1 to
Koha 3.0.2 (running on SLES 11 - "SUSE Linux Enterprise Server" 11).
SLES 11 uses Perl 5.10
Here's the snipped output of my upgrade attempt:
----------------------------------------
myhost:~/koha-3.00.02 # perl Makefile.PL --prev-install-log
/usr/share/koha/misc/koha-install-log
[snipped most output... ]
If installing on a Win32 platform, be sure to use:
'dmake -x MAXLINELENGTH=300000'
Checking if your kit is complete...
Looks good
[Mon Jun 8 16:19:37 2009] Makefile.PL: Warning: prerequisite
HTTP::OAI 3.2 not found.
[Mon Jun 8 16:19:37 2009] Makefile.PL: Warning: prerequisite JSON
2.07 not found.
[Mon Jun 8 16:19:41 2009] Makefile.PL: Warning: prerequisite
XML::SAX::Writer 0.44 not found.
Writing Makefile for koha
myhost:~/koha-3.00.02 #
----------------------------------------
OK. So it seems that I need to install the HTTP::OAI Perl module. No
problem, I'll install it from CPAN:
----------------------------------------
myhost:~/koha-3.00.02 # cpan
cpan shell -- CPAN exploration and modules installation (v1.9304)
ReadLine support enabled
cpan[1]> install HTTP::OAI
CPAN: Storable loaded ok (v2.18)
Going to read /root/.cpan/Metadata
Database was generated on Tue, 12 May 2009 10:27:03 GMT
CPAN: LWP::UserAgent loaded ok (v5.816)
CPAN: Time::HiRes loaded ok (v1.9711)
Fetching with LWP:
http://cpan.perl.pt/authors/01mailrc.txt.gz
CPAN: YAML loaded ok (v0.68)
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read 60 yaml files from /root/.cpan/build/
............................................................................DONE
Restored the state of 60 (in 1.4212 secs)
............................................................................DONE
Fetching with LWP:
http://cpan.perl.pt/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Mon, 08 Jun 2009 11:26:58 GMT
............................................................................DONE
Fetching with LWP:
http://cpan.perl.pt/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Going to write /root/.cpan/Metadata
Running install for module 'HTTP::OAI'
Running make for T/TI/TIMBRODY/HTTP-OAI-3.21.tar.gz
Fetching with LWP:
http://cpan.perl.pt/authors/id/T/TI/TIMBRODY/HTTP-OAI-3.21.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
Fetching with LWP:
http://cpan.perl.pt/authors/id/T/TI/TIMBRODY/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/T/TI/TIMBRODY/HTTP-OAI-3.21.tar.gz
ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
HTTP-OAI-3.21/
HTTP-OAI-3.21/CHANGES
HTTP-OAI-3.21/Makefile.PL
HTTP-OAI-3.21/t/
[snipped most output...]
Manifying blib/man3/HTTP::OAI::ListSets.3pm
Manifying blib/man3/HTTP::OAI::Repository.3pm
Manifying blib/man3/HTTP::OAI::MetadataFormat.3pm
TIMBRODY/HTTP-OAI-3.21.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" 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/0112017');
# 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 line 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 at ecs.soton.ac.uk"
# t/identify.t line 32 is: ok($r->adminEmail,'mailto:tdb01r at 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, 6 wallclock secs ( 0.04 usr 0.11 sys + 3.09
cusr 0.62 csys = 3.86 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
cpan[2]> quit
Lockfile removed.
----------------------------------------
Oops... so it seems I'm having some problems installing the HTTP::OAI
Perl module from CPAN, because it fails several installation tests.
Are other people having the same problem? Did you have to "force
install" HTTP::OAI ?
Thanks in advance! :)
Cheers,
Ricardo Dias Marques
lists AT ricmarques DOT net
Installation Guide for Installing Koha 3 on openSUSE 11
http://wiki.koha.org/doku.php?id=opensuse_11.0
More information about the Koha
mailing list