Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Downloading CPAN modules on WIndows....

by biswanath_c (Beadle)
on Oct 14, 2009 at 12:16 UTC ( #801054=perlquestion: print w/ replies, xml ) Need Help??
biswanath_c has asked for the wisdom of the Perl Monks concerning the following question:

I am new to downloading CPAN modules - i have downloaded a couple of them but now i am trying to download LibXML module and i am facing issues (i am not able to find in the zip file that I downloaded.

What is the simplest approach to install a CPAN module on a Windows machine? (I have downloaded the zip file already)

Comment on Downloading CPAN modules on WIndows....
Replies are listed 'Best First'.
Re: Downloading CPAN modules on WIndows....
by Bloodnok (Vicar) on Oct 14, 2009 at 12:19 UTC
    Use the tools provided in the core distribution - typically either perl -MCPAN -e shell (non-ActiveState) or ppm (ActiveState).

    A user level that continues to overstate my experience :-))
Re: Downloading CPAN modules on WIndows....
by Corion (Pope) on Oct 14, 2009 at 12:20 UTC

    The easiest way is to use Strawberry Perl, which comes with XML::LibXML already compiled in.

    Otherwise, you download and compile libxml and all its prerequisites and then use the ppm tool (on ActiveState Perl) or the cpan tool (on Strawberry Perl) to install XML::LibXML.

Re: Downloading CPAN modules on WIndows....
by VinsWorldcom (Vicar) on Oct 14, 2009 at 12:24 UTC

      Thanks for the reply

      I was trying to download the XML::LibXML module - but when I tried to run the command "perl", i got an error that asked me to first install libxml2. I then downloaded libxml2-2.4.12-1-lib from but when i extracted the zip file, it was all .h files. What's the simplest way to compile them? or if not, what else should i do with them? :)

        This is not a Perl problem. There should be a file "README" or "INSTALL", which describes how to build libxml2 on Windows in the zip archive. The easier approach is to use a binary that somebody already built for you instead.

Re: Downloading CPAN modules on WIndows....
by biohisham (Priest) on Oct 14, 2009 at 13:04 UTC
    Check this node How to install a CPAN module, it got useful information as well.

    Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://801054]
Approved by Bloodnok
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-11-25 23:52 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (693 votes), past polls