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

sorry if this is a dumb or often asked one ...

I'd like to install some CPAN modules but rather than connecting and goign through the auto procedure, I wanted to go the CPAN website and download them and then install them into my Perl tree.

Is this really all that difficult? I mean, I know I will run into dependency problems as I download (say) Module X which depends on Module Y that I do not have installed, but maybe there's a way of quickly finding out Module X´s dependencies.

Could there be problems installing the modules into the Perl Tree? All this is for my Win32 Perl.

Replies are listed 'Best First'.
Re: manual install CPAN modules
by McDarren (Abbot) on Aug 20, 2006 at 14:00 UTC
    " sorry if this is a dumb or often asked one ..."

    It is by no means a dumb question, but it is one that gets asked often enough. So often in fact, that somebody went to the trouble of writing a tutorial for it :) (check the "Manual Installation" section).

    Friendly tip: Try checking the Categorized Questions and Answers or Tutorials sections before posting what seems to be a common question. You'll enevitably find your answer there :)

    Cheers,
    Darren :)

      Many thanks for friendly answer. I love the expression "that somebody". Cheers.

      Please consider this question closed.
Re: manual install CPAN modules
by monarch (Priest) on Aug 21, 2006 at 11:49 UTC
    My personal tips on building a module from scratch on Windows are these:
    1. get and install MinGW C/C++ compiler set (from MinGW home page)
    2. ensure you have a make utility handy
    3. install the ExtUtils::FakeConfig module using the usual untar-and-make process
    4. when running the perl Makefile.PL script for future module installations on your Win32 box always instruct it to use the Config_m.pm module created when you installed ExtUtils::FakeConfig like this: perl -MConfig_m Makefile.PL

    Note that creating the makefile using the -MConfig_m option will result in a custom make file for your win32 environment and C compiler.

    It's not easy, good luck, and grit your teeth and have the patience to sort out the process for yourself.

    update for holly, I removed the extra manual line numbering!