perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fred Moyer <>
Subject Problems in Makefile.PL determining installed Apache* module version
Date Sun, 05 Apr 2009 18:57:58 GMT
In my Makefile.PL I have:

    VERSION_FROM => 'lib/SL/Apache/',
    PREREQ_PM    => {
        'Apache::Reload'      => 0.10,
        'Apache2::Dispatch'    => 0.11,

Running 'perl Makefile.PL' I get:

phred@pooky ~/dev/svn/sl/trunk/SL-App $ perl Makefile.PL
generating script t/TEST
Warning: prerequisite Apache2::Dispatch 0.11 not found.

In Apache2::Dispatch I have:

package Apache2::Dispatch;
use strict;
use warnings;
our $VERSION = '0.11';
use mod_perl2 1.99023;
use Apache2::Const -compile => qw(OK DECLINED SERVER_ERROR);
use Apache2::Log         ();
use Apache2::Module      ();
use Apache2::RequestRec  ();
use Apache2::RequestUtil ();
use Apache::Dispatch::Util;
push @Apache2::Dispatch::ISA, qw(Apache::Dispatch::Util);
# Initialize the directives
my $directives = __PACKAGE__->directives();
Apache2::Module::add(__PACKAGE__, $directives);

And when I try to load the module from the command line:

phred@pooky ~/dev/svn/sl/trunk/SL-App $ perl -MApache2::Dispatch -e
'print $Apache2::Dispatch::VERSION'
Undefined subroutine &Apache2::Module::add called at
/Users/phred/dev/perl/lib/site_perl/5.8.8/Apache2/ line 26.
Compilation failed in require.
BEGIN failed--compilation aborted.

Any ideas where to go from here?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message