http://qs321.pair.com?node_id=22811


in reply to Installing modules on Win32

Two things.

First, do you actually have the right version of Perl installed? It seems that the module you are installing requires Perl 5.6 and not another one. Also, what distribution of Perl are you running? ActivePerl?

Second, ActiveState comes with a nice utility to install modules. I is called ppm (Perl Package Manager). With it you can search CPAN for modules and install them from there directly.

I have done that for you (since at some point I will probably need to use XML-Parser also):

C:\ppm
PPM> search xml

Here's what ppm found on CPAN:
Packages available from http://www.activestate.com/Packages/: CGI-XMLForm, XML-DOM, XML-Element, XML-Parser

Ok, so let's install XML-Parser:
PPM> install XML-Parser
Install package 'XML-Parser?' (y/N): y
Retrieving package 'XML-Parser'...
Installing C:\Perl\site\lib\auto\XML\Parser\Expat\Expat.dll
Installing C:\Perl\site\lib\auto\XML\Parser\Expat\Expat.exp
Installing C:\Perl\site\lib\auto\XML\Parser\Expat\Expat.lib
Installing C:\Perl\html\lib\site\XML\Parser\Expat.html
Installing C:\Perl\html\lib\site\XML\Parser.html
Installing C:\Perl\htmlhelp\pkg-XML-Parser.chm
Installing C:\Perl\htmlhelp\pkg-XML-Parser.hhc
Installing C:\Perl\site\lib\XML\Parser\Encodings\Japanese_Encodings.msg
Installing C:\Perl\site\lib\XML\Parser\Encodings\README
Installing C:\Perl\site\lib\XML\Parser\Expat\expat.html
Installing C:\Perl\site\lib\XML\Parser\Expat\xmlparse\hashtable.c
Installing C:\Perl\site\lib\XML\Parser\Expat\xmlparse\hashtable.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmlparse\xmlparse.c
Installing C:\Perl\site\lib\XML\Parser\Expat\xmlparse\xmlparse.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\ascii.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\asciitab.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\iasciitab.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\latin1tab.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\nametab.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\utf8tab.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\xmldef.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\xmlrole.c
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\xmlrole.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\xmltok.c
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\xmltok.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\xmltok_impl.c
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\xmltok_impl.h
Installing C:\Perl\site\lib\XML\Parser\Expat\xmltok\xmltok_ns.c
Installing C:\Perl\site\lib\XML\Parser\Expat.pm
Installing C:\Perl\site\lib\XML\Parser.pm
Writing C:\Perl\site\lib/auto/XML-Parser/.packlist

So... You can see that it was that easy: there was no compilation required since ppm fetches the precompiled binaries for you! I am personnaly using Active Perl 5.005. I have not decided yet if I wanted to go with Perl 5.6 or not. Right now, I don't need it. I am also waiting a little since I have heard about lots of problems with ActivePerl 5.6. Maybe that the next version will be more stable?
Anyway, good luck :-)