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@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
On 05/09/13 10:00, Samuel Desseaux wrote:
Koha wants something like: XML::LibXML::SAX::Parser=HASH(0x81fe220) You have: XML::SAX::Expat=HASH(0x99127b0) Looks bad, check INSTALL.* documentation.
Did you try checking the INSTALL.* documentation? Some say things like this: The correct parser entry will need to be moved to the bottom of the file. The following is the entry you are looking for: [XML::LibXML::SAX::Parser] http://xml.org/sax/features/namespaces = 1 What you posted had XML::SAX::Expat last, which is why it "looks bad". (Please don't email both koha and koha-devel. Email most things to koha and questions/comments about development to koha-devel. If you email both, some filters will label your message as "bulk mail".) Hope that helps, -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op http://koha-community.org supporter, web and library systems developer. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire (including development) at http://www.software.coop/
On Thu, Sep 05, 2013 at 11:00:06AM +0200, Samuel Desseaux wrote:
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.
You appear not to have libxml2 installed, or (more likely) the library is installed but not the include files to enable compiling against it. Distributions often package these separately from the runtime library as a dev package e.g. libxml2-dev in debian. The perl package you are trying to install needs this installed to compile against Colin -- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7759 633626 (mobile) colin.campbell@ptfs-europe.com skype: colin_campbell2 http://www.ptfs-europe.com
participants (3)
-
Colin Campbell -
MJ Ray -
Samuel Desseaux