[Koha] Trouble installing MARC::File::XML
Lawrence Bean
lbean at u47.k12.me.us
Fri Oct 5 07:29:34 NZST 2007
Rick Welykochy <rick at 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;'
More information about the Koha
mailing list