Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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:


Hi,
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 LibXML.pm 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....
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 (Priest) 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 makefile.pl", i got an error that asked me to first install libxml2. I then downloaded libxml2-2.4.12-1-lib from http://sourceforge.net/projects/gnuwin32/files/ 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-12-28 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls