You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Levon Rubin Barker <le...@rechockey.net> on 2002/06/23 14:17:40 UTC

Apache::Request - Win32

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/

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;


_________________________________________________________
Sign up for your Free RecHockey email at http://www.rechockey.net.




Re: Apache::Request - Win32

Posted by Levon Barker <le...@rechockey.net>.
That worked!!

I had installed the ActiveState libapreq.

Thanks for your help on this!



> 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/
>>
>> 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.
> 
> Did you get libapreq from ActiveState's repository? This one
> just has the .pm files - none of the C stuff - which might
> also explain this error. Try the libapreq available from
> 
> ppm install
>   http://theoryx5.uwinnipeg.ca/ppmpackages/libapreq.ppd
> 
> best regards,
> randy

_________________________________________________________
Sign up for your Free RecHockey email at http://www.rechockey.net.




Re: Apache::Request - Win32

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
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/
>
> 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.

Did you get libapreq from ActiveState's repository? This one
just has the .pm files - none of the C stuff - which might
also explain this error. Try the libapreq available from

ppm install
  http://theoryx5.uwinnipeg.ca/ppmpackages/libapreq.ppd

best regards,
randy


Re: Apache::Request - Win32

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
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