Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

how to install cpan modules in windows XP?

by balakrishnan (Monk)
on Dec 29, 2008 at 08:07 UTC ( [id://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 ?

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 makefile.pl
    5. Run Nmake ( Download here) or Go here and download
    6. Nmake test
    7. Nmake install
    Update:
    As CountZero said
    Instead of Step 1, You can type "cpan" on the commandline and use options:
    get
    make
    test
    install
    clean
    look
    readme
    or simply type "help" for the modules
    But, it might not work if you are using VPN or proxy (atleast in my case).
    Raghu
      Just wondering, why don't you just use 'cpan' on the command line?

      CountZero

      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 (http://strawberryperl.com/) 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 (Patriarch) 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

    Hi,

    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 http://search.cpan.org/~vparseval/List-MoreUtils-0.25_02/

      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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-29 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found