Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Perl & XML & LibXML

by paulacocacola (Initiate)
on Jan 17, 2004 at 01:28 UTC ( [id://321975]=perlquestion: print w/replies, xml ) Need Help??

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

Hi, I've been trying to install XML::LibXML but i have been having problems.
I saw some questions/answers that have been placed here but the problem maintains:
I'm trying to install LibXML on windows.
The Activestate 6** doesn't support the LibXML module (with ppm it doesn't find the ppd).
I've tryed to install by downloading and running perl Makefile.PL.
And it doesn't work:
enable native perl UTF8 looking for -lxml2... no looking for -llibxml2... libxml2 not found Try setting LIBS and INC values on the command line Or get libxml2 from http://www.libxml.org/ If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are. no

The CPAN documentation on how to install modules, refer to problems using perl makefile.pl on windows, and they say that the way to install is retrieving the .pm file and placing it on one of the paths on @INC.

I've tried this but perl complains that the LibXML::Common (required for LibXML). Doesn't have a loadable object:

Can't locate loadable object for module XML::LibXML::Common in @INC (@ +INC contai ns: C:/Perl/lib C:/Perl/site/lib .) at LibXML.pm line 11 Compilation failed in require at LibXML.pm line 11. BEGIN failed--compilation aborted at LibXML.pm line 11.

Why is this? Is this a problem of connecting to the libxml2.dll ? or is it a problem on perl?

In any case how do i solve this? The persons who complained of the same found a solution?

And finally: I need a XML module for a application that needs to have a document object, this object may be built at runtime, and must be compliant width a DTD. I saw some docs and decided to try out libxml, but if there is a module, simpler to install on windows, please tell me.

thank you!
(this is urgent)

Edited by BazB added code tags, minor cleanups.

Replies are listed 'Best First'.
Re: Perl & XML & LibXML
by castaway (Parson) on Jan 17, 2004 at 08:31 UTC
    Have you actually got libxml for Windows installed? You didnt say. In any case, you'll need it, so try here in case you havent.

    If you have, then its probably just not being found, youll need to set whichever environment variables your C-compiler uses to find the correct libraries/DLLs. I think it's LIBDIR and INCLUDE for VC++, not sure about any others..

    BTW, saying things are urgent usually will get you less replies, not more.. We're all volunteers, y'know..

    C.

Re: Perl & XML & LibXML
by ajt (Prior) on Jan 17, 2004 at 10:23 UTC
Re: Perl & XML & LibXML
by vek (Prior) on Jan 17, 2004 at 15:01 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-26 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found