mod_perl2.0.4: Apache2::compat errors

mod_perl2.0.4: Apache2::compat errors

am 31.07.2009 19:23:20 von George Karabotsos

Hi guys,

I have created this minimal script:

#!/usr/bin/env perl
use Apache2::compat;

and here's what I get:

> perl -c Tester.pl
Undefined subroutine &Apache2::ServerUtil::restart_count called at
/usr/lib/perl5/site_perl/5.10.0/i486-linux-thread-multi/Apac he2/compat.pm
line 76.
Compilation failed in require at Tester.pl line 2.
BEGIN failed--compilation aborted at Tester.pl line 2.

> perl -v
This is perl, v5.10.0 built for i486-linux-thread-multi

> uname -a
Linux athina 2.6.30.3 #3 SMP Tue Jul 28 11:56:46 PDT 2009 i686
Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz GenuineIntel GNU/Linux

> httpd -v
Server version: Apache/2.2.12 (Unix)
Server built: Jul 31 2009 10:01:42

Any help will be much appreciated.
George

Re: mod_perl2.0.4: Apache2::compat errors

am 31.07.2009 19:38:27 von Perrin Harkins

On Fri, Jul 31, 2009 at 1:23 PM, George Karabotsos wrote:
> I have created this minimal script:
>
> #!/usr/bin/env perl
> use Apache2::compat;
>
> and here's what I get:
>
>> perl -c Tester.pl

You can't do that. The mod_perl classes only work when run inside
mod_perl. What are you trying to do?

- Perrin