ahmad has asked for the wisdom of the Perl Monks concerning the following question:

Hello

i searched alot and read alot about that , but still not able to install modules on windows ... can any one explain it in a good way with examples ?

How to install perl module on windows with out using PPM ?

what do i have to download ? and how to make it work step by step

what i'm looking for is a good explaination , which means don't tell me compile "..." using "..." tell me HOW TO DO IT , me and i think other people also do not know about compiling codes

Thanks,
ahmad

Replies are listed 'Best First'.
Re: Modules On Windows
by wfsp (Abbot) on Feb 03, 2006 at 17:41 UTC
Re: Modules On Windows
by jdhedden (Deacon) on Feb 03, 2006 at 17:57 UTC
Re: Modules On Windows
by ajt (Prior) on Feb 03, 2006 at 18:15 UTC

    This is a re-hash of an old answer.

    Option 1

    You can install modules downloaded from CPAN onto ActiveState Perl without too many problems. You will need some extra bits though:

    • Download the module you want using a web browser.
    • You need to be able to unpack .tar.gz files, WinZip or 7Zipcan manage this - amongst others, and you can get command line tar and gnuzip for windows too - Cygwin is a good place for this.
    • You also need a copy of make. ActiveState built Perl with Microsoft's tools so you will need Microsoft's make program, called "nmake" that you can get from here.
    • If the module requires XS (c/c++ stuff) then you will need a copy of Visual C, however most do not, so you should be okay for most things.
    • Basically once you have downloaded the file, unpack it and follow the instructions in the README file inside the module - remembering that it's nmake not make.

    Option 2

    Don't forget that there is the Perl Package Manager can use other archives than just the default ActiveState one.

    Option 3

    You can use the normal Perl CPAN module to automatically install modules for you directly onto Windows. If the module has c in it you will need a c compiler but CPAN will take care of it for you. You can either use Cygwin and the version of Perl in there, or buy Microsoft's Compiler and use it with the Active State version of Perl.

    Normally you don't need to compile anything when making a Perl module it's done all for you.


    --
    ajt
Re: Modules On Windows
by Anonymous Monk on Feb 04, 2006 at 16:56 UTC
    Well for simple modules without many dependencies or a needed C compiler just copy the *.pm files into your Perl\lib\whatever folder.