[Koha] SOLVED: Re: Installing XML::SAX Does Not Install "ParserDetails.ini" File (was Re: sax_parser_print.pl Issue on VDS (CentOS))
Andi Sugandi
andisugandi at gmail.com
Thu Jun 28 03:49:30 NZST 2012
Hi all,
So.. IMHO, this was an old issue:
http://lists.katipo.co.nz/public/koha/2007-October/012527.html
:)
On Wed, Jun 27, 2012 at 2:57 PM, Andi Sugandi <andisugandi at gmail.com> wrote:
[...]
> I just realize that installing XML::SAX module Perl (5.16) via cpan on
> my VDS (CentOS) does not install "ParserDetails.ini" file:
>
> "...
> Appending installation info to
> /usr/local/lib/perl5/5.16.0/x86_64-linux/perllocal.pod
> could not find ParserDetails.ini in
> /root/.cpan/build/XML-SAX-0.99-a2ItfE/blib/lib/XML/SAX
> ... " [1]
>
> [1] http://paste.opensuse.org/view/simple/45939574
>
> Perl 5.16 does not have it [2] while my old version (5.8.8) does [3].
>
> [2] http://paste.opensuse.org/view/simple/91380094
> [3] http://paste.opensuse.org/view/simple/45731456
This has been documented well on the Perl-XML FAQ:
http://perl-xml.sourceforge.net/faq/#parserdetails.ini
Solution:
1.
After installing Installing XML::SAX (via cpan), I should install
other module: XML::SAX::Expat or XML::LibXML.
2.
Proceed by running:
perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
3.
Make sure that "ParserDetails.ini" file (anywhere on the system) has
only these 2 lines:
[XML::LibXML::SAX::Parser]
http://xml.org/sax/features/namespaces = 1
4.
Test it (inside your extracted Koha direcotry, mine: ./koha-3.8.2):
# /usr/local/bin/perl misc/sax_parser_print.pl
Koha wants something like:
XML::LibXML::SAX::Parser=HASH(0x81fe220)
You have:
XML::LibXML::SAX::Parser=HASH(0x2671db8)
Looks good.
or:
# ./misc/sax_parser_print.pl
Koha wants something like:
XML::LibXML::SAX::Parser=HASH(0x81fe220)
You have:
XML::LibXML::SAX::Parser=HASH(0x1187e78)
Looks good.
Any comments are valuable (especially) for me.
Best regards,
--
Andi Sugandi.
More information about the Koha
mailing list