in reply to Re: CPAN: Install of Apache2::Request failed
in thread CPAN: Install of Apache2::Request failed

This is suspicious Can't open perl script "INSTALLDIRS=site" INSTALLDIRS=site is an argument for Makefile.PL, not perl

You should break out of CPAN, I think

CPAN> look libapreq2
or with cpanplus
cpanp z libapreq2
and run
perl Makefile.PL make make test make install
manually

Replies are listed 'Best First'.
Re^3: CPAN: Install of Apache2::Request failed
by aidan (Initiate) on Aug 27, 2009 at 12:13 UTC

    Thanks so much - I guess I'll never know why I couldn't install via CPAN, but using cpanplus and your manual install technique, it seems to have worked.

    Thanks.

Re^3: CPAN: Install of Apache2::Request failed
by simonrees (Initiate) on Jan 15, 2010 at 11:40 UTC

    Hello Monks. New here as a monk but have been a reader in the past...

    I ran in to this problem too. Having had a look at the Makefile.PL sourcecode, I see the problem is due to the way Makefile.PL interfaces with configure. I've sent the following message to apreq-dev@httpd.apache.org:

    ----->8-------

    I've been trying to install libapreq2-2.12 using the following command:

    perl Makefile.PL INSTALLDIRS=vendor --with-apache2-apxs=/blah

    This fails because Makefile.PL assumes that options passed to it that are not recognised are Perl options rather than Makefile.PL options (line 54).

    This results in configure being invoked as:

    ./configure --enable-perl-glue --with-perl-opts=INSTALLDIRS=vendor --w +ith-apache2-apxs=/blah/apxs --with-perl=/blah/perl

    This leads to the configure script trying to run the following command at line 19493:

    perl INSTALLDIRS=vendor build/version_check.pl

    that then fails...

    Does anyone think it would be possible to enable the Makefile.PL INSTALLDIRS=vendor for this package? I appreciate that the distribution uses a somewhat non-standard way to install the modules.

    -----8<------

    I'll post anything I hear back about this question. In the meantime I've just not passed the INSTALLDIRS option to Makefile.PL - not ideal in my situation, but at least it allows me to install the modules.

    Simon