Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

XML-LibXML-2.0129 installation issues

by Brat (Initiate)
on May 24, 2017 at 14:44 UTC ( [id://1191092]=perlquestion: print w/replies, xml ) Need Help??

Brat has asked for the wisdom of the Perl Monks concerning the following question:

I installed the latest libxml perl library XML-LibXML-2.0129 after downloading it from cpan. my installation did not seem to have gone fine.
perl Makefile.PL FORCE=1 PREFIX=/app/localapps/perl/lib LIB=/app/localapps/perl/lib enable native perl UTF8 running xml2-config...failed The installed version of libxml2 FORCED 2.9.4 is not compatible with XML::LibXML (and probably buggy)! You may continue at your own risk using 'perl Makefile.PL FORCE=1', bu +t: - don't expect XML::LibXML to build or work correctly! - don't report errors! - don't send patches! Check the README file for more information on versionsthat are tested +with XML::LibXML Checking for ability to link against xml2...yes Generating a Unix-style Makefile Writing Makefile for XML::LibXML Writing MYMETA.yml and MYMETA.json

The issue with the installation is that I cannot find Node.pm. Not sure How I can fix this. Please help. what am I missing?

Replies are listed 'Best First'.
Re: XML-LibXML-2.0129 installation issues
by syphilis (Archbishop) on May 25, 2017 at 00:13 UTC
    The issue with the installation is that I cannot find Node.pm

    AFAICT there isn't any 'Node.pm'.
    There's a 'package XML::LibXML::Node' as part of LibXML.pm - and I would think that package gets loaded with use XML::LibXML; not with use XML::LibXML::Node;.

    Update: The first line of the "SYNOPSIS" section in perldoc XML::LibXML::Node specifies that you use XML::LibXML;.

    Cheers,
    Rob
Re: XML-LibXML-2.0129 installation issues
by marto (Cardinal) on May 24, 2017 at 15:08 UTC
    The installed version of libxml2 FORCED 2.9.4 is not compatible with XML::LibXML (and probably buggy)! You may continue at your own risk using 'perl Makefile.PL FORCE=1', bu +t: - don't expect XML::LibXML to build or work correctly! - don't report errors! - don't send patches! Check the README file for more information on versionsthat are tested with XML::LibXML

    I think the message above is pretty clear. If you want to use this module satisfy it's dependencies.

      yes, a little confused on that. the latest version of libxml2 seems to be libxml2-2.9.4 what other dependencies do I need to resolve? am I approaching this the wrong way? please advise.
        what other dependencies do I need to resolve?

        Did you run make test after the perl Makefile.PL FORCE=1 PREFIX=/app/localapps/perl/lib step finished ?
        You'll need to do that, and then run make install.

        If you've done all of that and there were problems, then I'd be looking to make that failing 'xml2-config' command work.
        Where is 'xml2-config' located ? Is it in '/app/localapps/perl/bin' ?

        Could you post the output of perl -V (that's an uppercase 'V').

        Cheers,
        Rob

        yes, a little confused on that. the latest version of libxml2 seems to be libxml2-2.9.4 what other dependencies do I need to resolve? am I approaching this the wrong way? please advise.

        Hi,

        Are the directions really that confusing?

        That version is known to be buggy

        Your options are, install it anyway (force), or download an older version (like 2.9.3 ".0" or 2.7.8.1) or a newer version (like snapshot)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1191092]
Approved by Marshall
Front-paged by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (1)
As of 2024-04-23 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found