I'm doing a fresh install of Koha on Debian Etch. Everything has gone well up until perl -MCPAN -e 'install MARC::File::XML' The output is below up to the beginning of the errors. Can anyone point me in the correct direction to solve this? ----- Checking if your kit is complete... Looks good Writing Makefile for MARC-XML cp lib/MARC/File/XML.pm blib/lib/MARC/File/XML.pm cp lib/MARC/File/SAX.pm blib/lib/MARC/File/SAX.pm cp bin/xml2marc blib/script/xml2marc /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/xml2marc cp bin/marc2xml blib/script/marc2xml /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/marc2xml Manifying blib/man1/xml2marc.1p Manifying blib/man1/marc2xml.1p Manifying blib/man3/MARC::File::XML.3pm KADOS/MARC-XML-0.87.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/batch........NOK 1/23 # Failed test 'use MARC::File::XML;' # at t/batch.t line 4. # Tried to use 'MARC::File::XML'. # Error: Unable to provide required features # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at t/batch.t line 4. t/batch........ok 2/23Can't call method "parse_string" on unblessed reference at /root/.cpan/build/MARC-XML-0.87-AYK0gi/blib/lib/MARC/File/XML.pm line 450. # Looks like you planned 23 tests but only ran 3. # Looks like you failed 1 test of 3 run. # Looks like your test died just after 3.
Lawrence Bean wrote:
I'm doing a fresh install of Koha on Debian Etch. Everything has gone well up until perl -MCPAN -e 'install MARC::File::XML' The output is below up to the beginning of the errors. Can anyone point me in the correct direction to solve this?
This has become No. 1 topic on the list. It seems verison 0.87 is borked. Try version 0.85. 1. http://search.cpan.org/~kados/MARC-XML-0.87/ 2. select version 0.85 3. Download and README. cheers rickw -- _________________________________ Rick Welykochy || Praxis Services Once a new technology starts rolling, if you're not part of the steamroller, you're part of the road. -- Stewart Brand
Rick Welykochy <rick@praxis.com.au> writes:
This has become No. 1 topic on the list. It seems verison 0.87 is borked. Try version 0.85.
OK, for future edification, here's what I did. And thanks for helping point me in the correct direction! I downloaded 0.85 and tried to manually install and got the same error. Also tried 0.86 and got the same (output below). I found the recent thread "Perl Module Lament" and read through it. Although I tried initially installing the default CPAN install (0.87), it failed just like below and never actually installed. The command perl -MMARC::File::XML -e 'print "hello\n"' gives Can't locate MARC/File/XML.pm in @INC BEGIN failed--compilation aborted. The command grep VERSION `perldoc -l MARC::File::XML` gives No documentation found for "MARC::File::XML". I downloaded http://serene.ttllp.co.uk/~mjr/libmarc-xml-perl_0.86-1_all.deb and installed with dpkg -i libmarc-xml-perl_0.86-1_all.deb and now the command grep VERSION `perldoc -l MARC::File::XML` gives $VERSION = '0.86'; However the command perl -MMARC::File::XML -e 'print "hello\n"' now gives could not find ParserDetails.ini in /usr/local/share/perl/5.8.8/XML/SAX I googled the above error and found a FAQ http://perl-xml.sourceforge.net/faq/#parserdetails.ini which says "It should be created by the XML::SAX installation script and should be updated automatically by the install script for each SAX parser module." I uninstalled XML::SAX and re-installed it, but at the end of installation it says ----- Appending installation info to /usr/lib/perl/5.8/perllocal.pod could not find ParserDetails.ini in /root/.cpan/build/XML-SAX-0.16-ZoEro4/blib/lib/XML/SAX GRANTM/XML-SAX-0.16.tar.gz /usr/bin/make install -- OK ----- so I used the command perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" and now the command perl -MMARC::File::XML -e 'print "hello\n"' yields "hello" I went on to install all the other modules, and all were successful except perl -MCPAN -e 'install LWP::Simple' which died because URI was missing. I did apt-get install liburi-perl and then LWP::Simple appeared to install OK So I'm going to forge ahead and hope for the best! Thanks again. ---------- koha:~/MARC-XML-0.85# perl Makefile.PL Writing Makefile for MARC-XML koha:~/MARC-XML-0.85# make cp bin/xml2marc blib/script/xml2marc /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/xml2marc cp bin/marc2xml blib/script/marc2xml /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/marc2xml Manifying blib/man1/xml2marc.1p Manifying blib/man1/marc2xml.1p Manifying blib/man3/MARC::File::XML.3pm koha:~/MARC-XML-0.85# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/batch........NOK 1/23 # Failed test 'use MARC::File::XML;' ------ koha:~/MARC-XML-0.86# perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for MARC-XML koha:~/MARC-XML-0.86# make cp lib/MARC/File/XML.pm blib/lib/MARC/File/XML.pm cp lib/MARC/File/SAX.pm blib/lib/MARC/File/SAX.pm cp bin/xml2marc blib/script/xml2marc /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/xml2marc cp bin/marc2xml blib/script/marc2xml /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/marc2xml Manifying blib/man1/xml2marc.1p Manifying blib/man1/marc2xml.1p Manifying blib/man3/MARC::File::XML.3pm koha:~/MARC-XML-0.86# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/batch........NOK 1/23 # Failed test 'use MARC::File::XML;'
participants (2)
-
Lawrence Bean -
Rick Welykochy