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

I'm using Activestate ppm, I tried to install using PPM but it can find the module Apache::Par. So how do I install Apache::Par as I am using windowXP.

Replies are listed 'Best First'.
Re: Apache::Par problem
by arden (Curate) on Jul 10, 2004 at 04:19 UTC
    First things first, it is Apache::PAR, not Apache::Par. Perl is very much so case-sensitive! Next up, I checked and it looks like Apache::PAR is not part of the core distribution of ActiveState (at least not my version) and the module isn't listed on ActiveState's repository. It might be on one of the others, I'll leave that as an exercise for you to undertake.

    That pretty much leaves installing it straight from CPAN. Before you attempt that, I strongly recommend that you take a look at the Tutorials, specifically the ones on modules.

    - - arden.

Re: Apache::Par problem
by techy (Scribe) on Jul 10, 2004 at 04:10 UTC
    Anon,

    Do you have Apache and mod_perl setup? If not, I would start by getting these installed and configured. For information on doing this, see the main mod_perl site. Assuming you have these setup, try the following:

    All prerequisites for Apache::PAR can be installed via PPM. These include: PAR, MIME::Types, Archive::Zip, Apache::Test, Digest::MD5, File::Spec, and File::Path.

    If you have "make" installed and CPAN setup, you should be able to install Apache::PAR with:

    perl -MCPAN -e "install Apache::PAR"

    If you do not have CPAN setup, Apache::PAR can also be installed manually by downloading the package and extracting the files (its a .tar.gz, so you might have to use WinZip or other program that can handle this type of archive.) Apache::PAR does not require a compiler, so once you have extracted the files, just put PAR.pm and PAR/* someplace in your @INC.

    More non-Win32 specific Apache::PAR installation information can also be found in the tutorial.

    BTW - I would like to get Apache::PAR included in the PPM list, either the main archive or the theoryx5 archive where mod_perl exists. Anyone know how to go about doing this?

    Thanks,
    techy (Nathan Byrd)