XML & Perl - Error

C

codefixer

Hi,
I am getting an error when I use use XML::LibXML(); in my .pl file.

when I try to compile, the error I get is
Can't locate XML.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/l
ib .) at xmlparse.pl line 2.
BEGIN failed--compilation aborted at xmlparse.pl line 2.


I am using the following version of Perl.
This is perl, v5.8.2 built for MSWin32-x86-multi-thread
(with 25 registered patches, see perl -V for more detail)

Copyright 1987-2003, Larry Wall

Binary build 808 provided by ActiveState Corp.
http://www.ActiveState.com

I was wondering if I have to upgrade or how do I get the required
pm(perl module).

Thanks.
 
S

Sherm Pendley

I am getting an error when I use use XML::LibXML(); in my .pl file. ....
Binary build 808 provided by ActiveState Corp.
http://www.ActiveState.com

I was wondering if I have to upgrade or how do I get the required
pm(perl module).

XML::LibXML isn't part of the core Perl distribution, so you'll have to
install it separately. Go to the URL you listed above and follow their
instructions for obtaining and installing a compiled and packaged PPM of
the module.

sherm--
 
N

nobull

Sherm said:
file.

XML::LibXML isn't part of the core Perl distribution, so you'll
have to install it separately. Go to the URL you listed above
and follow their instructions for obtaining and installing a
compiled and packaged PPM of the module.

Really, their website says they don't have PPMs.

For pointers to other PPM respositoies or how to build XML::LibXML
yourself on Win32 see numerous previous threads on this subject.
 
C

codefixer

Really, their website says they don't have PPMs.

For pointers to other PPM respositoies or how to build XML::LibXML
yourself on Win32 see numerous previous threads on this subject.

Like which ones ?? I did find LibXML on their webpage
"http://ppm.activestate.com/BuildStatus/5.6-X.html"
But when I do serach on their Perl Package Manager(ppm prompt) I don't
get that package. So what's going on here ?

Any other compatible packages ?

Thanks
 
B

Bart Lateur

Sherm said:
XML::LibXML isn't part of the core Perl distribution, so you'll have to
install it separately. Go to the URL you listed above and follow their
instructions for obtaining and installing a compiled and packaged PPM of
the module.

Note that this module requires a DLL from the LibXML project (and I was
sure that there was a "2" in that name...) that is not installed but the
PPM. You need to get it separately, preferably first.

Oh that's right. See

<http://cpan.uwinnipeg.ca/htdocs/XML-LibXML/README.html>

Prior to installation you MUST have installed the libxml2
library. You can get the latest libxml2 version from

http://xmlsoft.org

Without libxml2 installed this module will neither build nor
run.

But that is actually the info for installing the module from CPAN.
(Either with or without CPAN.pm). But I recall that that DLL *does not
come* with the module, even when you use PPM. All in all I can say that
install of this particular module is definitely not the easiest install
you could ever have to do.

The same site does provide some pointers to PPM modules: see the bottom
of

<http://cpan.uwinnipeg.ca/dist/XML-LibXML>

which points into (for 5.8.x):

<http://theoryx5.uwinnipeg.ca/ppms/>


A Google search of this type is pretty always successful in hunting one
down: search for both module name and "PPD":

<http://www.google.com/search?q=XML::LibXML+PPD>


The first result of this search points into Apache's repository, a very
broad PPM repository in general. Please take care to use one of the many
mirrors for larger downloads.

<http://www.apache.org/dyn/closer.cgi>

under whatever mirror you picked, dig into the subdirectory

perl/win32-bin/ppms/

and you'll find the PPD files there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,301
Messages
2,571,548
Members
48,309
Latest member
jack7878

Latest Threads

Top