I'm having the same problem. (Also on Ubuntu 9.04 with Apache2 & mod_perl2)

I've installed all these:

libapache2-mod-perl2 libapache2-mod-perl2-dev apache2-prefork-dev libapreq2-dev libapreq2 libapache2-request-perl

But I'm still seeing this:

CPAN: File::Temp loaded ok (v0.18) CPAN.pm: Going to build J/JO/JOESUF/libapreq2-2.12.tar.gz perl: 5.10.0 ok mod_perl2: 2.000004 ok Apache::Test: 1.31 ok ExtUtils::MakeMaker: 6.42 ok ExtUtils::XSBuilder: 0.28 ok Test::More: 0.88 ok ./configure --enable-perl-glue --with-perl-opts="INSTALLDIRS=site" --w +ith-apache2-apxs="/usr/bin/apxs2" --with-perl="/usr/bin/perl" checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no [snip] checking whether ln -s works... yes checking whether to enable maintainer-specific portions of Makefiles.. +. no Can't open perl script "INSTALLDIRS=site": No such file or directory configure: error: Bad apache2 binary (/usr/sbin/apache2) Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=s +ite] JOESUF/libapreq2-2.12.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install

Any pointers would be gratefully received, this is driving me nuts.


In reply to Re: CPAN: Install of Apache2::Request failed by aidan
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.