I'm trying to get Mason working under mod_perl, but having a bit of trouble with Apache::Request. I do a simple script like the following.
<html><body> %my $planet = "World"; Hello <% planet %>! </body></html>
and I get a 500 error, with the following log:
[Tue Sep 16 06:08:39 2003] [error] [client 10.0.1.159] Can't locate ob +ject method "new" via package "Apache::Request" at /usr/lib/perl5/sit +e_perl/5.8.0/i386-linux-thread-multi/Apache/Request.pm line 22.
Mason seems ok when i run it standalone
use strict; use HTML::Mason; my $interp = HTML::Mason::Interp->new(); my $comp = $interp->make_component(comp_source => <<'END'); % my $planet = "World"; Hello <% $planet %> END $interp->exec($comp);
Apparently the problem is only with Apache Request which seems to have installed fine according to cpan. Except that the test phase did return an error..
!!! no test server configured, please specify an httpd or an apxs othe +r than /usr/sbin/apxs or put either in your PATH. For example: t/TEST -httpd /path/to/bin/httpd make: *** [run_tests] Error 1 /usr/bin/make test -- NOT OK
Has anyone ever encountered anything similar with Apache::Request? I googled and found a few similar messages, but no clear cut solution to the problem. My PC runs Mandrake 9.1, which runs a seperate apache process for mod_perl, if that matters.

In reply to Apache::Request causing Mason to fail. by thunders

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.