On Sun, 23 Jun 2002, Levon Rubin Barker wrote:

> Hello.
>
> I'm sure this is a simple problem, but I'm a noob at mod_perl and could use
> some help.
>
> I am running WinXP, Apache 1.3.26, Mod_perl 1.27_01-dev with libapreq 0.31/

There's a libapreq-1 out now, in $CPAN/authors/id/J/JI/JIMW/ ...


> The problem I am having is ...
>
> I get the following in the Apache Error log.
>
> [Sun Jun 23 08:44:06 2002] [error] Can't locate object method "new" via
> package "Apache::Request" (perhaps you forgot to load "Apache::Request"?)
> at (eval 12) line 9.
>
>
> Here is my code that generates that error:
>
> #!/usr/bin/perl -w
> use strict;
>
> use Apache::Request ();
>
> my $r = shift;
> my $apr = Apache::Request->new($r);
>
> $apr->send_http_header;

I tried this as a registry script, on winxp/apache_1.3.27-dev/
mod_perl-1.27_01-dev, and it was OK ... Did you compile
libapreq yourself? If so, and assuming you also compiled
mod_perl, after installing libapreq, do the request and cookies
tests of mod_perl pass?

Does putting a
    PerlModule Apache::Request
directive in httpd.conf help?

best regards,
randy kobes



Reply via email to