I found this post when searching for info on my problem, but although the error message is the same my situation is a little different.
http://www.perlmonks.org/?node_id=646596

I am getting a compile error in Eclipse when I try to use XML::LibXML. I have installed this package with PPM and I am running with ActiveState on a Windows box. It was my understanding that PPM would handle pulling in any dependencies necessary automatically when I selected XML-LibXML for install.

The error message I receive is:
Compilation failed in require
A fatal error (trappable)
Perl could not compile a file specified in a C<require> statement.
Perl uses this generic message when none of the errors that it
encountered were severe enough to halt compilation immediately.


Any ideas what I am doing wrong?

Here's what's showing in the Details tab when I click on my installed XML-LibXML package in PPM...

XML-LibXML Interface to Gnome libxml2 xml parsing and DOM library Version: 1.66 Author: Christian Glahn CPAN: http://search.cpan.org/dist/XML-LibXML-1.66/ Installed files: C:/Perl/html/site/lib/XML/LibXML.html C:/Perl/html/site/lib/XML/LibXML/Attr.html C:/Perl/html/site/lib/XML/LibXML/Boolean.html C:/Perl/html/site/lib/XML/LibXML/CDATASection.html C:/Perl/html/site/lib/XML/LibXML/Comment.html C:/Perl/html/site/lib/XML/LibXML/DOM.html C:/Perl/html/site/lib/XML/LibXML/Document.html C:/Perl/html/site/lib/XML/LibXML/DocumentFragment.html C:/Perl/html/site/lib/XML/LibXML/Dtd.html C:/Perl/html/site/lib/XML/LibXML/Element.html C:/Perl/html/site/lib/XML/LibXML/InputCallback.html C:/Perl/html/site/lib/XML/LibXML/Literal.html C:/Perl/html/site/lib/XML/LibXML/Namespace.html C:/Perl/html/site/lib/XML/LibXML/Node.html C:/Perl/html/site/lib/XML/LibXML/NodeList.html C:/Perl/html/site/lib/XML/LibXML/Number.html C:/Perl/html/site/lib/XML/LibXML/PI.html C:/Perl/html/site/lib/XML/LibXML/Parser.html C:/Perl/html/site/lib/XML/LibXML/Reader.html C:/Perl/html/site/lib/XML/LibXML/RelaxNG.html C:/Perl/html/site/lib/XML/LibXML/SAX.html C:/Perl/html/site/lib/XML/LibXML/SAX/Builder.html C:/Perl/html/site/lib/XML/LibXML/SAX/Generator.html C:/Perl/html/site/lib/XML/LibXML/Schema.html C:/Perl/html/site/lib/XML/LibXML/Text.html C:/Perl/html/site/lib/XML/LibXML/XPathContext.html C:/Perl/site/lib/XML/LibXML.pm C:/Perl/site/lib/XML/LibXML.pod C:/Perl/site/lib/XML/LibXML/Attr.pod C:/Perl/site/lib/XML/LibXML/Boolean.pm C:/Perl/site/lib/XML/LibXML/CDATASection.pod C:/Perl/site/lib/XML/LibXML/Comment.pod C:/Perl/site/lib/XML/LibXML/DOM.pod C:/Perl/site/lib/XML/LibXML/Document.pod C:/Perl/site/lib/XML/LibXML/DocumentFragment.pod C:/Perl/site/lib/XML/LibXML/Dtd.pod C:/Perl/site/lib/XML/LibXML/Element.pod C:/Perl/site/lib/XML/LibXML/InputCallback.pod C:/Perl/site/lib/XML/LibXML/Literal.pm C:/Perl/site/lib/XML/LibXML/Namespace.pod C:/Perl/site/lib/XML/LibXML/Node.pod C:/Perl/site/lib/XML/LibXML/NodeList.pm C:/Perl/site/lib/XML/LibXML/Number.pm C:/Perl/site/lib/XML/LibXML/PI.pod C:/Perl/site/lib/XML/LibXML/Parser.pod C:/Perl/site/lib/XML/LibXML/Reader.pm C:/Perl/site/lib/XML/LibXML/Reader.pod C:/Perl/site/lib/XML/LibXML/RelaxNG.pod C:/Perl/site/lib/XML/LibXML/SAX.pm C:/Perl/site/lib/XML/LibXML/SAX.pod C:/Perl/site/lib/XML/LibXML/SAX/Builder.pm C:/Perl/site/lib/XML/LibXML/SAX/Builder.pod C:/Perl/site/lib/XML/LibXML/SAX/Generator.pm C:/Perl/site/lib/XML/LibXML/SAX/Parser.pm C:/Perl/site/lib/XML/LibXML/Schema.pod C:/Perl/site/lib/XML/LibXML/Text.pod C:/Perl/site/lib/XML/LibXML/XPathContext.pm C:/Perl/site/lib/XML/LibXML/XPathContext.pod C:/Perl/site/lib/auto/XML/LibXML/.packlist C:/Perl/site/lib/auto/XML/LibXML/LibXML.bs C:/Perl/site/lib/auto/XML/LibXML/LibXML.dll C:/Perl/site/lib/auto/XML/LibXML/LibXML.exp C:/Perl/site/lib/auto/XML/LibXML/LibXML.lib C:/Perl/site/lib/auto/XML/LibXML/LibXML.pdb

Thanks for any help on this...

In reply to use XML::LibXML; is causing compile error by willjones

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.