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

Hi
Im using the latest version of Active Perl on Windows and need to used such modules as HTML::Strip and HTML::Entities. I type -
PPM install HTML::Strip
But I get - PPM install failed: Can't find any package that provides HTML::Strip
What should I do, thanks?

Replies are listed 'Best First'.
Re: Installing modules using PPM
by runrig (Abbot) on Dec 23, 2009 at 01:09 UTC
    Perhaps you need to configure ppm to look at more repositories (on the menu: Edit->Preferences->Repositories tab, then pick from the Suggested list and Add). Uwinnipeg lists several different versions of HTML::Strip available (a 5.10 compatible version looks like it is available in the bribes and trouchelle repos and HTML::Entities looks like it is available in the ActiveState, bribes, and trouchelle repos).
Re: Installing modules using PPM
by desemondo (Hermit) on Dec 22, 2009 at 21:58 UTC
    looks like HTML::Strip needs a compiler... (usually implied by the .xs and .c and .h files from the module download link on cpan.)

    I recently tried out MinGW, and its worked superbly for every module I've tried installing so far.

    I wrote this thread on Compiling modules for win32 ActivePerl based on that adventure.

    If you want to go with MinGW, heres a checklist:
    1. Get MinGW ppm install MinGW
    2. Download the module from CPAN, and extract it into a folder somewhere. (Winzip can extract ".tar.gz" files)
    3. Check that c:\perl\site\bin is in your windows environment PATH
    4. Run perl -V:make and perl -V:cc, they should return make='dmake' and cc='gcc' respectively. (If they don't, then either MinGW didn't install properly, or Perl doesn't know about the MinGW installation.)
    5. Then follow the standard mantra
    perl Makefile.pl dmake dmake test dmake install
    If running through the above checklist doesn't go smoothly, then there may be other issues specifc to your Perl installation, Perl version, PC environment etc. So this may be a pretty steep learning curve... Anyhow, once you get perl -V:cc returning cc='gcc' be aware that you'll need to rerun perl Makefile.pl as it creats a different file when cc='gcc' rather than the default cc='cl' for ActivePerl )
Re: Installing modules using PPM
by toolic (Bishop) on Dec 22, 2009 at 21:27 UTC