[Koha] RE : Question of sax parser
Eric Bégin
eric.begin at inLibro.com
Thu Sep 5 23:17:07 NZST 2013
Bonjour Sam,
You can simply move the following block at the end of your ParserDetails.ini file
[XML::LibXML::SAX]
http://xml.org/sax/features/namespaces = 1
Eric
www.inLibro.com
-------- Message d'origine --------
De : Samuel Desseaux <samuel.desseaux at ecp.fr>
Date : 05/09/2013 5:00 (GMT-05:00)
À : koha-devel at lists.koha-community.org,koha at lists.katipo.co.nz
Objet : [Koha] Question of sax parser
Hi,
During the install, when i run this command "./sax_parser_print.pl",
i've the following error
Koha wants something like:
XML::LibXML::SAX::Parser=HASH(0x81fe220)
You have:
XML::SAX::Expat=HASH(0x99127b0)
Looks bad, check INSTALL.* documentation.
I check my ParserDetails.ini and something miss (Sax Parser)
[XML::SAX::PurePerl]
http://xml.org/sax/features/namespaces = 1
[XML::LibXML::SAX]
http://xml.org/sax/features/namespaces = 1
[XML::SAX::Expat]
http://xml.org/sax/features/namespaces = 1
http://xml.org/sax/features/external-general-entities = 1
http://xml.org/sax/features/external-parameter-entities = 1
I think the following lines give the main reason but i don't know how to do
root at kohadev:/home/koha/kohaclone# cpan XML::LibXML::SAX::Parser
Going to read '/root/.cpan/Metadata'
Database was generated on Thu, 05 Sep 2013 04:29:04 GMT
Running install for module 'XML::LibXML::SAX::Parser'
Running make for S/SH/SHLOMIF/XML-LibXML-2.0104.tar.gz
Checksum for
/root/.cpan/sources/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0104.tar.gz ok
CPAN.pm: Going to build S/SH/SHLOMIF/XML-LibXML-2.0104.tar.gz
enable native perl UTF8
running xml2-config...didn't manage to get libxml2 config, guessing
options:
LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm'
INC='-I/usr/local/include -I/usr/include'
If this is wrong, Re-run as:
$ /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib'
INC='-I/path/to/include'
Checking for ability to link against xml2...no
Checking for ability to link against libxml2...libxml2, zlib, and/or the
Math library (-lm) have not been found.
Try setting LIBS and INC values on the command line
Or get libxml2 from
http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.
Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
to see the exact reason why the detection of libxml2 installation
failed or why Makefile.PL was not able to compile a test program.
No 'Makefile' created SHLOMIF/XML-LibXML-2.0104.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine
prerequisites
Thank you for your help
Best regards,
Samuel
_______________________________________________
Koha mailing list http://koha-community.org
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha
More information about the Koha
mailing list