in reply to perl module XML::CanonicalizeXML won't install - issue with make / libxml

fatal error: libxml/parser.h: No such file or directory

README:

"This module requires these other modules and libraries:

libxml2

libxml2 development headers"

So using Debian package management (the names will likely be the same/similar for SUSE):apt-get install libxml2 libxml2-dev. After that:

cpanm XML::CanonicalizeXML --> Working on XML::CanonicalizeXML Fetching http://www.cpan.org/authors/id/S/SJ/SJZASADA/XML-Canonicalize +XML-0.05.tgz ... OK Configuring XML-CanonicalizeXML-0.05 ... OK Building and testing XML-CanonicalizeXML-0.05 ... OK Successfully installed XML-CanonicalizeXML-0.05 1 distribution installed

Update: show working install

Replies are listed 'Best First'.
Re^2: perl module XML::CanonicalizeXML won't install - issue with make / libxml
by MattP (Novice) on Apr 03, 2017 at 15:06 UTC

    Thanks Marto, thought it was something along these lines.

    Next issue, SUSE, at least this version, doesn't have apt-get. I'm used to Ubunto with apt-get and CentOS with Yum but a bit lost on this OS. An internet search pointed me to use zypper instead of apt-get - "zypper install libxml2 libxml2-dev". This claims to have upgraded libxml2, but not libxml2-dev - "Package 'libxml2-dev' not found."

    Have tested and XML::CanonicalizeXML is still giving the same error as before.

    Any thoughts/ideas?

    Thanks,

    Matt.

      I don't use SUSE, but a web search for 'zypper libxml2' shows that the package name you are looking for is libxml2-devel.

        Thanks again! I'm not very 'sysadmin' I'm afraid..!

        Now trying to install XML::Sig:

        Running make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::H +arness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/l +ib', 'blib/arch')" t/*.t t/001_load.t ......... ok t/002_xmlsec.t ....... ok t/003_params.t ....... ok t/004_keyhandling.t .. ok t/005_rsakeys.t ...... ok t/006_signing.t ...... 1/13 RSA.xs:178: OpenSSL error: bad base64 deco +de at blib/lib/Crypt/OpenSSL/RSA.pm (autosplit into blib/lib/auto/Cry +pt/OpenSSL/RSA/new_public_key.al) line 91. # Looks like your test exited with 2 just after 6. t/006_signing.t ...... Dubious, test returned 2 (wstat 512, 0x200) Failed 7/13 subtests

        When I check Crypt::OpenSSL::RSA I get "Crypt::OpenSSL::RSA is up to date (0.28)."

        Does anyone know anything about this?

        Thanks,
        Matt.