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


In reply to Re^3: CPAN: Install of Apache2::Request failed by simonrees
in thread CPAN: Install of Apache2::Request failed by nesto

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.