Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

how to install cpan modules in windows XP?

by balakrishnan (Monk)
on Dec 29, 2008 at 08:07 UTC ( #732966=perlquestion: print w/replies, xml ) Need Help??
balakrishnan has asked for the wisdom of the Perl Monks concerning the following question:

how do i can install and use the cpan modules in windows XP ?
  • Comment on how to install cpan modules in windows XP?

Replies are listed 'Best First'.
Re: how to install cpan modules in windows XP?
by imrags (Monk) on Dec 29, 2008 at 08:25 UTC
    Here's what I do generally:
    1. Go to whichever module you need for windows from web.
    2. Download the tar.gz file
    3. Extract with WinRAR
    4. Run perl
    5. Run Nmake ( Download here) or Go here and download
    6. Nmake test
    7. Nmake install
    As CountZero said
    Instead of Step 1, You can type "cpan" on the commandline and use options:
    or simply type "help" for the modules
    But, it might not work if you are using VPN or proxy (atleast in my case).
      Just wondering, why don't you just use 'cpan' on the command line?


      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: how to install cpan modules in windows XP?
by lyklev (Pilgrim) on Dec 29, 2008 at 09:06 UTC
    In case you are running activestate perl, chances are the module you need comes pre-compiled from Activestate. These modules can be installed using "ppm" from the command-line (dos-prompt) or from the start menu that the installation creates. I really think this is the easiest way.

    If the module you need contains any source code in c (or other languages) and if you do not have a compiler, using ppm is the only way.

      ... assuming there's a ppmed version of the module you wish to install - I switched to using Strawberry perl ( on Windoze because:
      1. An increasing number of the modules I wanted weren't available and ...
      2. I didn't want the bloatware that is the M$ dev environments just for the compiler & linker/link editor and ...
      3. I found that nmake didn't understand all too much of the standard make(1) script generated by some of the Makefile.PL scripts... and the rework effort needed just wasn't worth it and...
      4. Strawberry perl provides a standard make(1), compiler & linker/link editor for free.
      A decision I wished I'd made an awfully long time ago - I now actively envangelise Strawberry perl for Windoze.

      A user level that continues to overstate my experience :-))
Re: how to install cpan modules in windows XP?
by Corion (Pope) on Dec 29, 2008 at 08:13 UTC
Re: how to install cpan modules in windows XP?
by Anonymous Monk on Dec 29, 2008 at 08:13 UTC
Re: how to install cpan modules in windows XP?
by snape (Pilgrim) on Mar 26, 2010 at 14:31 UTC


    You need to go to the author's page where all the modules will be listed and then select the module which you would like to use and then check the version. Accordingly, you can download it and then install the same. for example the case of the List::MoreUtil module

      ActiveState Perl has shipped with a cpan client for some time now, this will also install a C compiler and build tools should you need them (note the module you used as an example contains xs code). It's often easier/quicker to use cpan or PPM to install modules than it is do it by hand. See also Installing Modules from the tutorials section of the site.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://732966]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2018-05-26 09:05 GMT
Find Nodes?
    Voting Booth?