http://www.perlmonks.org?node_id=801054

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....

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 (Patriarch) 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 (Prior) 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.