Last Koha development version (from git) mentions missing prerequisites that are already installed
Hi list, I'm updating a local Koha installation from "git" to the last commit available at this time (commit 8f95ec3dbef2cf9bf214fb2b25587f2bb4ebba15 sent by Owen Leonard, submitted on 20-Apr-2009, "Fix for Bug 3119: Add due date to the patron circulation history window"). In order to do this, I did a "git pull". I got the expected many lines of "Getting index for pack", "got", "walk", "create mode", "delete"... After doing this, I ran the following command: myhost:~/mykohaclone # perl Makefile.PL --prev-install-log /root/my-koha-head/misc/koha-install-log That command produced the expected output, EXCEPT for the last lines (that have some information that seems correct BUT other info seems wrong): _____________________ [Wed Apr 22 11:52:18 2009] Makefile.PL: Warning: prerequisite DBD::SQLite 1.13 not found. We have 1.11. [Wed Apr 22 11:52:18 2009] Makefile.PL: Warning: prerequisite Date::ICal 1.72 not found. [Wed Apr 22 11:52:18 2009] Makefile.PL: Warning: prerequisite HTTP::OAI 3.2 not found. [Wed Apr 22 11:52:19 2009] Makefile.PL: Warning: prerequisite JSON 2.07 not found. [Wed Apr 22 11:52:20 2009] Makefile.PL: Warning: prerequisite SMS::Send 0.05 not found. [Wed Apr 22 11:52:21 2009] Makefile.PL: Warning: prerequisite XML::SAX::Writer 0.44 not found. Writing Makefile for koha _____________________ OK. My setup is a Linux virtual machine, running SLES (SUSE Linux Enterprise Server) 10 with SP2 (Service Pack 2) installed. It is true that I had DBD::SQLite v1.11 installed in the past, from a RPM package for SLES: myhost:~/mykohaclone # rpm -qa | grep -i perl-dbd-sqlite perl-DBD-SQLite-1.11-14.6 So this first "Warning" line seems CORRECT: I have DBD::SQLite 1.11 installed, but I now need DBD::SQLite 1.13. OK, no problem. I installed it from CPAN. Now, the PROBLEM is in the 2nd line. I already have Date::ICal version 1.72 installed, also from a RPM package for SLES: myhost:~/mykohaclone # rpm -qa | grep -i perl-date-ical perl-Date-ICal-1.72-2.1 This seems to be confirmed by running the following command: myhost:~/mykohaclone # locate ICal | grep -i date /root/mykohaclone/perl-Date-ICal-1.72-2.1.i586.rpm /usr/lib/perl5/vendor_perl/5.8.8/Date/ICal /usr/lib/perl5/vendor_perl/5.8.8/Date/ICal/Duration.pm /usr/lib/perl5/vendor_perl/5.8.8/Date/ICal.pm /usr/share/doc/packages/perl-Date-ICal /usr/share/doc/packages/perl-Date-ICal/Changes /usr/share/doc/packages/perl-Date-ICal/README /usr/share/man/man3/Date::ICal.3pm.gz /usr/share/man/man3/Date::ICal::Duration.3pm.gz /var/adm/perl-modules/perl-Date-ICal So, is this "Warning", during Koha installation, WRONG (regarding Date::ICal not being installed)? I have the same problem with SMS::Send. I already have SMS::Send version 0.05 installed by RPM: myhost:~/mykohaclone # rpm -qa | grep -i sms perl-SMS-Send-0.05-3.2 But, as I pointed out above, I also got a Warning message, in this Koha update, saying that "[Wed Apr 22 11:52:20 2009] Makefile.PL: Warning: prerequisite SMS::Send 0.05 not found. " What do you think about this? 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
Hi Ricardo, On Wed, Apr 22, 2009 at 6:56 AM, Ricardo Dias Marques <lists@ricmarques.net> wrote:
So, is this "Warning", during Koha installation, WRONG (regarding Date::ICal not being installed)?
The modules may be installed but for some reason not in the Perl module search path. Try running the following commands; if the modules can be found with the current @INC for your platform, each should print the version number for the module. perl -MDate::ICal -e 'print $Date::ICal::VERSION, "\n"' perl -MSMS::Send -e 'print $SMS::Send::VERSION, "\n"' Regards, Galen -- Galen Charlton VP, Research & Development, LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709 skype: gmcharlt
Hi Galen, On Wed, Apr 22, 2009 at 13:10, Galen Charlton <galen.charlton@liblime.com> wrote:
The modules may be installed but for some reason not in the Perl module search path. Try running the following commands; if the modules can be found with the current @INC for your platform, each should print the version number for the module.
perl -MDate::ICal -e 'print $Date::ICal::VERSION, "\n"' perl -MSMS::Send -e 'print $SMS::Send::VERSION, "\n"'
Many thanks for the very quick and informative reply. The output of the two commands that you mention is rather interesting: myhost:~/mykohaclone # perl -MDate::ICal -e 'print $Date::ICal::VERSION, "\n"' Can't locate Date/Leapyear.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.8.8/Date/ICal.pm line 9. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Date/ICal.pm line 9. Compilation failed in require. BEGIN failed--compilation aborted. myhost:~/mykohaclone # perl -MSMS::Send -e 'print $SMS::Send::VERSION, "\n"' Can't locate Params/Util.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.8.8/SMS/Send.pm line 56. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/SMS/Send.pm line 56. Compilation failed in require. BEGIN failed--compilation aborted. Does this indicate that there is some problem with the "packaging" of the two RPM software packages for SLES that I have installed ("perl-Date-ICal-1.72-2.1" and "perl-SMS-Send-0.05-3.2")? Should I install these two modules (Date::ICal and SMS::Send) directly from CPAN instead? Thanks again! 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
Hi, On Wed, Apr 22, 2009 at 8:22 AM, Ricardo Dias Marques <lists@ricmarques.net> wrote:
Can't locate Date/Leapyear.pm in @INC (@INC contains: ... Can't locate Params/Util.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8
The error messages show that there are at least two Perl modules that Date::ICal and SMS::Send depend on, namely Date::Leapyear and Params::Util, that are either not installed or not accessible via @INC. You will need to install those modules from RPMs or CPAN. Regards, Galen -- Galen Charlton VP, Research & Development, LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709 skype: gmcharlt
Hi Galen, On Wed, Apr 22, 2009, Galen Charlton <galen.charlton@liblime.com> wrote:
The error messages show that there are at least two Perl modules that Date::ICal and SMS::Send depend on, namely Date::Leapyear and Params::Util, that are either not installed or not accessible via @INC. You will need to install those modules from RPMs or CPAN.
Thanks for the information. I think that I solved the problem by installing those two Perl modules from CPAN (Date::Leapyear and Params::Util) *and also* a third module named Class::Adapter::Builder that SMS::Send seemed to also depend on, although I did bump into some other errors that I dismissed, as I will mention further down: ------------------------------ myhost:~/mykohaclone # perl -MSMS::Send -e 'print $SMS::Send::VERSION, "\n"' Can't locate Class/Adapter/Builder.pm in @INC [snip] Compilation failed in require. BEGIN failed--compilation aborted. myhost:~/mykohaclone # cpan cpan> install Class::Adapter::Builder CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Wed, 22 Apr 2009 05:26:59 GMT Running install for module Class::Adapter::Builder [snip] All tests successful, 3 tests skipped. Files=10, Tests=65, 1 wallclock secs ( 0.36 cusr + 0.25 csys = 0.61 CPU) /usr/bin/make test -- OK Running make install [snip] /usr/bin/make install -- OK myhost:~/mykohaclone # perl Makefile.PL --prev-install-log /root/ric-koha-head/misc/koha-install-log [snip] If installing on a Win32 platform, be sure to use: 'dmake -x MAXLINELENGTH=300000' Writing Makefile for koha ------------------------------ So, this time I got NO more "Warning" lines about missing prerequisites! :) After doing this, I ran "make test", which did return some ERRORS in tests "t/Circulation_barcodedecode.t", "t/Labels_split_ddcn.t" and "t/Labels_split_lccn.t ", for test 'use C4::Labels;'. I decided to dismiss those errors and ran "make install" anyway: ------------------------------ myhost:~/mykohaclone # make test [snip] t/Calendar.....................ok t/Charset......................ok t/Circulation_barcodedecode....Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666. # Failed test 'use C4::Circulation;' # in t/Circulation_barcodedecode.t at line 10. # Tried to use 'C4::Circulation'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Circulation_barcodedecode.t line 10. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Undefined subroutine &C4::Circulation::barcodedecode called at t/Circulation_barcodedecode.t line 31. # Looks like you planned 16 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Circulation_barcodedecode....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-16 Failed 16/16 tests, 0.00% okay t/Dates........................# # In order to run without DB access, this test will substitute 'us' # as your default date format. Export environmental variable KOHA_TEST_DATE_FORMAT # to override this default, or pass the value as an argument to this test script. # # NOTE: we test for the system handling dd=00 and 00 for TIME values, therefore # you SHOULD see some warnings like: # Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t ... # # Testing Legacy Functions: format_date and format_date_in_iso # Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 62 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 65 # # Testing 4 formats. # Testing no input (defaults): # # Testing with valid inputs: Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 # # Testing object independence from class # done. t/Dates........................ok 12/192 skipped: various reasons t/Debug........................# BEFORE use: $debug is not defined # BEFORE use: $cgi_debug is not defined # AFTER use: $debug is 0 # AFTER use: $cgi_debug is 0 # Done. t/Debug........................ok t/dummy........................ok t/Input........................ok t/Koha.........................ok t/Labels_split_ddcn............Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666. # Failed test 'use C4::Labels;' # in t/Labels_split_ddcn.t at line 11. # Tried to use 'C4::Labels'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Labels_split_ddcn.t line 11. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Bareword "C4::Labels::split_ddcn" not allowed while "strict subs" in use at t/Labels_split_ddcn.t line 13. Execution of t/Labels_split_ddcn.t aborted due to compilation errors. # Looks like you planned 52 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Labels_split_ddcn............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-52 Failed 52/52 tests, 0.00% okay t/Labels_split_lccn............Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666. # Failed test 'use C4::Labels;' # in t/Labels_split_lccn.t at line 11. # Tried to use 'C4::Labels'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Labels_split_lccn.t line 11. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Bareword "C4::Labels::split_lccn" not allowed while "strict subs" in use at t/Labels_split_lccn.t line 13. Execution of t/Labels_split_lccn.t aborted due to compilation errors. # Looks like you planned 44 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Labels_split_lccn............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-44 Failed 44/44 tests, 0.00% okay t/Languages....................ok t/Maintainance.................ok t/Output.......................ok t/Record.......................ok t/Review.......................ok t/Scrubber.....................# Note: scrubber test output will have whitespace collapsed for readability # done. t/Scrubber.....................ok t/Stats........................ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/Circulation_barcodedecode.t 255 65280 16 31 193.75% 1-16 t/Labels_split_ddcn.t 255 65280 52 103 198.08% 1-52 t/Labels_split_lccn.t 255 65280 44 87 197.73% 1-44 12 subtests skipped. Failed 3/23 test scripts, 86.96% okay. 112/351 subtests failed, 68.09% okay. make: *** [test_dynamic] Error 255 myhost:~/mykohaclone # make install [snip] t/Calendar.....................ok t/Charset......................ok t/Circulation_barcodedecode....Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666. # Failed test 'use C4::Circulation;' # in t/Circulation_barcodedecode.t at line 10. # Tried to use 'C4::Circulation'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Circulation_barcodedecode.t line 10. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Undefined subroutine &C4::Circulation::barcodedecode called at t/Circulation_barcodedecode.t line 31. # Looks like you planned 16 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Circulation_barcodedecode....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-16 Failed 16/16 tests, 0.00% okay t/Dates........................# # In order to run without DB access, this test will substitute 'us' # as your default date format. Export environmental variable KOHA_TEST_DATE_FORMAT # to override this default, or pass the value as an argument to this test script. # # NOTE: we test for the system handling dd=00 and 00 for TIME values, therefore # you SHOULD see some warnings like: # Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t ... # # Testing Legacy Functions: format_date and format_date_in_iso # Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 62 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 65 # # Testing 4 formats. # Testing no input (defaults): # # Testing with valid inputs: Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 # # Testing object independence from class # done. t/Dates........................ok 12/192 skipped: various reasons t/Debug........................# BEFORE use: $debug is not defined # BEFORE use: $cgi_debug is not defined # AFTER use: $debug is 0 # AFTER use: $cgi_debug is 0 # Done. t/Debug........................ok t/dummy........................ok t/Input........................ok t/Koha.........................ok t/Labels_split_ddcn............Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666. # Failed test 'use C4::Labels;' # in t/Labels_split_ddcn.t at line 11. # Tried to use 'C4::Labels'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Labels_split_ddcn.t line 11. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Bareword "C4::Labels::split_ddcn" not allowed while "strict subs" in use at t/Labels_split_ddcn.t line 13. Execution of t/Labels_split_ddcn.t aborted due to compilation errors. # Looks like you planned 52 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Labels_split_ddcn............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-52 Failed 52/52 tests, 0.00% okay t/Labels_split_lccn............Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666. # Failed test 'use C4::Labels;' # in t/Labels_split_lccn.t at line 11. # Tried to use 'C4::Labels'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Labels_split_lccn.t line 11. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Bareword "C4::Labels::split_lccn" not allowed while "strict subs" in use at t/Labels_split_lccn.t line 13. Execution of t/Labels_split_lccn.t aborted due to compilation errors. # Looks like you planned 44 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Labels_split_lccn............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-44 Failed 44/44 tests, 0.00% okay t/Languages....................ok t/Maintainance.................ok t/Output.......................ok t/Record.......................ok t/Review.......................ok t/Scrubber.....................# Note: scrubber test output will have whitespace collapsed for readability # done. t/Scrubber.....................ok t/Stats........................ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/Circulation_barcodedecode.t 255 65280 16 31 193.75% 1-16 t/Labels_split_ddcn.t 255 65280 52 103 198.08% 1-52 t/Labels_split_lccn.t 255 65280 44 87 197.73% 1-44 12 subtests skipped. Failed 3/23 test scripts, 86.96% okay. 112/351 subtests failed, 68.09% okay. make: *** [test_dynamic] Error 255 ------------------------------ Like I said, after running "make test", I ran "make install" (that went smoothly). After doing this, I went to the "Koha Web Installer" (running on the 8080 port) and successfully went through all the steps, with one small exception, that was an error regarding notice message transports, specifically after activating the checkbox for sample_notices_message_transports: ------------------------------ sample_notices_message_transports.sql ERROR 1452 (23000) at line 1: Cannot add or update a child row: a foreign key constraint fails (`kohahead/message_transports`, CONSTRAINT `message_transports_ibfk_1` FOREIGN KEY (`message_attribute_id`) REFERENCES `message_attributes` (`message_attribute_id`) ON DELETE CASCADE ON UPDATE ) ------------------------------ So, I would like to ask: are these errors regarding "t/Circulation_barcodedecode.t", "t/Labels_split_ddcn.t", "t/Labels_split_lccn.t" and "sample_notices_message_transports.sql" SAFE to IGNORE? Thanks again Galen! 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
Looks like we need to break out the static functions from C4::Labels so that the test can use them directly without C4::Labels trying to "use" Members, Branch, Biblio, etc. and all their dependencies. That is where the tests fail since inevitably one of those tries to do some DB access at the class level (despite it not being used by the test). Same for C4::Circulation apparently. They are safe to ignore for now, but we should still fix them up. --Joe On Fri, Apr 24, 2009 at 3:23 PM, Ricardo Dias Marques <lists@ricmarques.net>wrote:
Hi Galen,
On Wed, Apr 22, 2009, Galen Charlton <galen.charlton@liblime.com> wrote:
The error messages show that there are at least two Perl modules that Date::ICal and SMS::Send depend on, namely Date::Leapyear and Params::Util, that are either not installed or not accessible via @INC. You will need to install those modules from RPMs or CPAN.
Thanks for the information. I think that I solved the problem by installing those two Perl modules from CPAN (Date::Leapyear and Params::Util) *and also* a third module named Class::Adapter::Builder that SMS::Send seemed to also depend on, although I did bump into some other errors that I dismissed, as I will mention further down:
------------------------------ myhost:~/mykohaclone # perl -MSMS::Send -e 'print $SMS::Send::VERSION, "\n"' Can't locate Class/Adapter/Builder.pm in @INC [snip] Compilation failed in require. BEGIN failed--compilation aborted.
myhost:~/mykohaclone # cpan
cpan> install Class::Adapter::Builder CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Wed, 22 Apr 2009 05:26:59 GMT Running install for module Class::Adapter::Builder [snip] All tests successful, 3 tests skipped. Files=10, Tests=65, 1 wallclock secs ( 0.36 cusr + 0.25 csys = 0.61 CPU) /usr/bin/make test -- OK Running make install [snip] /usr/bin/make install -- OK
myhost:~/mykohaclone # perl Makefile.PL --prev-install-log /root/ric-koha-head/misc/koha-install-log
[snip]
If installing on a Win32 platform, be sure to use: 'dmake -x MAXLINELENGTH=300000'
Writing Makefile for koha ------------------------------
So, this time I got NO more "Warning" lines about missing prerequisites! :)
After doing this, I ran "make test", which did return some ERRORS in tests "t/Circulation_barcodedecode.t", "t/Labels_split_ddcn.t" and "t/Labels_split_lccn.t ", for test 'use C4::Labels;'. I decided to dismiss those errors and ran "make install" anyway:
------------------------------ myhost:~/mykohaclone # make test
[snip]
t/Calendar.....................ok t/Charset......................ok t/Circulation_barcodedecode....Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
# Failed test 'use C4::Circulation;' # in t/Circulation_barcodedecode.t at line 10. # Tried to use 'C4::Circulation'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Circulation_barcodedecode.t line 10. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Undefined subroutine &C4::Circulation::barcodedecode called at t/Circulation_barcodedecode.t line 31. # Looks like you planned 16 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Circulation_barcodedecode....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-16 Failed 16/16 tests, 0.00% okay t/Dates........................# # In order to run without DB access, this test will substitute 'us' # as your default date format. Export environmental variable KOHA_TEST_DATE_FORMAT # to override this default, or pass the value as an argument to this test script. # # NOTE: we test for the system handling dd=00 and 00 for TIME values, therefore # you SHOULD see some warnings like: # Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t ... # # Testing Legacy Functions: format_date and format_date_in_iso # Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 62 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 65 # # Testing 4 formats. # Testing no input (defaults): # # Testing with valid inputs: Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 # # Testing object independence from class # done. t/Dates........................ok 12/192 skipped: various reasons t/Debug........................# BEFORE use: $debug is not defined # BEFORE use: $cgi_debug is not defined # AFTER use: $debug is 0 # AFTER use: $cgi_debug is 0 # Done. t/Debug........................ok t/dummy........................ok t/Input........................ok t/Koha.........................ok t/Labels_split_ddcn............Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
# Failed test 'use C4::Labels;' # in t/Labels_split_ddcn.t at line 11. # Tried to use 'C4::Labels'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Labels_split_ddcn.t line 11. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Bareword "C4::Labels::split_ddcn" not allowed while "strict subs" in use at t/Labels_split_ddcn.t line 13. Execution of t/Labels_split_ddcn.t aborted due to compilation errors. # Looks like you planned 52 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Labels_split_ddcn............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-52 Failed 52/52 tests, 0.00% okay t/Labels_split_lccn............Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
# Failed test 'use C4::Labels;' # in t/Labels_split_lccn.t at line 11. # Tried to use 'C4::Labels'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Labels_split_lccn.t line 11. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Bareword "C4::Labels::split_lccn" not allowed while "strict subs" in use at t/Labels_split_lccn.t line 13. Execution of t/Labels_split_lccn.t aborted due to compilation errors. # Looks like you planned 44 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Labels_split_lccn............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-44 Failed 44/44 tests, 0.00% okay t/Languages....................ok t/Maintainance.................ok t/Output.......................ok t/Record.......................ok t/Review.......................ok t/Scrubber.....................# Note: scrubber test output will have whitespace collapsed for readability # done. t/Scrubber.....................ok t/Stats........................ok Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------------------------- t/Circulation_barcodedecode.t 255 65280 16 31 193.75% 1-16 t/Labels_split_ddcn.t 255 65280 52 103 198.08% 1-52 t/Labels_split_lccn.t 255 65280 44 87 197.73% 1-44 12 subtests skipped. Failed 3/23 test scripts, 86.96% okay. 112/351 subtests failed, 68.09% okay. make: *** [test_dynamic] Error 255
myhost:~/mykohaclone # make install
[snip]
t/Calendar.....................ok t/Charset......................ok t/Circulation_barcodedecode....Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
# Failed test 'use C4::Circulation;' # in t/Circulation_barcodedecode.t at line 10. # Tried to use 'C4::Circulation'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Circulation_barcodedecode.t line 10. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Undefined subroutine &C4::Circulation::barcodedecode called at t/Circulation_barcodedecode.t line 31. # Looks like you planned 16 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Circulation_barcodedecode....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-16 Failed 16/16 tests, 0.00% okay t/Dates........................# # In order to run without DB access, this test will substitute 'us' # as your default date format. Export environmental variable KOHA_TEST_DATE_FORMAT # to override this default, or pass the value as an argument to this test script. # # NOTE: we test for the system handling dd=00 and 00 for TIME values, therefore # you SHOULD see some warnings like: # Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t ... # # Testing Legacy Functions: format_date and format_date_in_iso # Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 62 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 65 # # Testing 4 formats. # Testing no input (defaults): # # Testing with valid inputs: Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 Illegal date specified (year = 1952, month = 1, day = 00) at t/Dates.t line 84 # # Testing object independence from class # done. t/Dates........................ok 12/192 skipped: various reasons t/Debug........................# BEFORE use: $debug is not defined # BEFORE use: $cgi_debug is not defined # AFTER use: $debug is 0 # AFTER use: $cgi_debug is 0 # Done. t/Debug........................ok t/dummy........................ok t/Input........................ok t/Koha.........................ok t/Labels_split_ddcn............Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
# Failed test 'use C4::Labels;' # in t/Labels_split_ddcn.t at line 11. # Tried to use 'C4::Labels'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Labels_split_ddcn.t line 11. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Bareword "C4::Labels::split_ddcn" not allowed while "strict subs" in use at t/Labels_split_ddcn.t line 13. Execution of t/Labels_split_ddcn.t aborted due to compilation errors. # Looks like you planned 52 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Labels_split_ddcn............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-52 Failed 52/52 tests, 0.00% okay t/Labels_split_lccn............Use of uninitialized value in concatenation (.) or string at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666.
# Failed test 'use C4::Labels;' # in t/Labels_split_lccn.t at line 11. # Tried to use 'C4::Labels'. # Error: Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Context.pm line 666 # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Circulation.pm line 25. # BEGIN failed--compilation aborted at t/Labels_split_lccn.t line 11. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Overdues.pm line 24. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Members.pm line 27. # Compilation failed in require at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # BEGIN failed--compilation aborted at /root/mykohaclone/blib/PERL_MODULE_DIR/C4/Labels.pm line 27. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Bareword "C4::Labels::split_lccn" not allowed while "strict subs" in use at t/Labels_split_lccn.t line 13. Execution of t/Labels_split_lccn.t aborted due to compilation errors. # Looks like you planned 44 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/Labels_split_lccn............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-44 Failed 44/44 tests, 0.00% okay t/Languages....................ok t/Maintainance.................ok t/Output.......................ok t/Record.......................ok t/Review.......................ok t/Scrubber.....................# Note: scrubber test output will have whitespace collapsed for readability # done. t/Scrubber.....................ok t/Stats........................ok Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------------------------- t/Circulation_barcodedecode.t 255 65280 16 31 193.75% 1-16 t/Labels_split_ddcn.t 255 65280 52 103 198.08% 1-52 t/Labels_split_lccn.t 255 65280 44 87 197.73% 1-44 12 subtests skipped. Failed 3/23 test scripts, 86.96% okay. 112/351 subtests failed, 68.09% okay. make: *** [test_dynamic] Error 255 ------------------------------
Like I said, after running "make test", I ran "make install" (that went smoothly). After doing this, I went to the "Koha Web Installer" (running on the 8080 port) and successfully went through all the steps, with one small exception, that was an error regarding notice message transports, specifically after activating the checkbox for sample_notices_message_transports:
------------------------------ sample_notices_message_transports.sql ERROR 1452 (23000) at line 1: Cannot add or update a child row: a foreign key constraint fails (`kohahead/message_transports`, CONSTRAINT `message_transports_ibfk_1` FOREIGN KEY (`message_attribute_id`) REFERENCES `message_attributes` (`message_attribute_id`) ON DELETE CASCADE ON UPDATE ) ------------------------------
So, I would like to ask: are these errors regarding "t/Circulation_barcodedecode.t", "t/Labels_split_ddcn.t", "t/Labels_split_lccn.t" and "sample_notices_message_transports.sql" SAFE to IGNORE?
Thanks again Galen!
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 _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel
participants (3)
-
Galen Charlton -
Joe Atzberger -
Ricardo Dias Marques