http://www.perlmonks.org?node_id=312853

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

I am on Win2K...and built 5.8.2 from source and want to use PPM, but can't find the answer anywhere...thanks!

Replies are listed 'Best First'.
Re: how to use ppm with source built perl?
by PodMaster (Abbot) on Dec 07, 2003 at 07:49 UTC
Re: how to use ppm with source built perl?
by BUU (Prior) on Dec 07, 2003 at 07:44 UTC
    If you can build 5.8.2 from source then you should be able to build any of the other modules out there. Therefor you should be able to just use the cpan shell (perl -MCPAN -e shell) and install modules "The Right Way".
Re: how to use ppm with source built perl?
by jdtoronto (Prior) on Dec 07, 2003 at 13:41 UTC
    It sounds like you downloaded the source form perl.org or somewhere else. Only the ActiveState distributions have PPM by default.

    Either adapt to using the CPAN module or install PPM as described in another answer. You will find more modules available on CPAN than the PPM repsoitories - in some cases they are ONLY available on CPAN, so even if you have PPM you will ulrimately need to use CPAN anyway. In particulalr I refer to the Crypt:: series of modules.

    The ActiveState PPM repository is built automatically. If a module doesn't compile cleanly with no interaction then it won't make it into the repository. The are many modules on CPAN that are fully functional, but have a need for interaction in the process that just don't make it into the repository.

    jdtoronto

      Either adapt to using the CPAN module
      Are you sure you didn't mean to say the CPANPLUS module (:?
Re: how to use ppm with source built perl?
by jZed (Prior) on Dec 07, 2003 at 23:14 UTC
    You told us you built perl from source, but not what compiler you used to do that. If you compiled perl with gcc, then ppm won't work because it works with binaries compiled with (IIRC) VC++.

    update - minor correction

    --

    The heck with patents, here's how to protect your thoughts: <tinfoil>.o0(Martians can't read this)</tinfoil>
      If you compiled perl with gcc, then ppm won't work because it works with binaries compiled with (IIRC) VC++.

      I have a handbuilt perl with GCC and most binary ppms from ActiveState work fine with it. I also build binary ppms with GCC that I use with ActivePerl

      -- simonflk

        Are you saying that an ActiveState .ppd of a module that has an XS component will work with a perl compiled with gcc? Are you also saying that a hand-rolled .ppd using a gcc compile of a module that has an XS component will work with ActivePerl? I've been under the impression that neither was possible.
Re: how to use ppm with source built perl?
by Arbogast (Monk) on Dec 07, 2003 at 05:35 UTC
    Cant you just type ppm on command line???
    search * to find list of modules
    Then install whatever::module