At apache start - Can't locate object method "boot" via package "mod_perl"

Here’s one for you folks. I’m trying to get rt running on Gentoo. I might be
needing a module. I’m using apache 2 with perl 1.99 and mysql. This error
message is delivered when trying to start apache.

  • Starting apache2…
    [Fri May 09 12:17:22 2003] [error] Can’t locate object method “boot” via package
    "mod_perl" at /usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache/Constants.pm line
  1. Compilation failed in require at
    /usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache.pm line 6. BEGIN
    failed–compilation aborted
    at/usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache.pm line 6. Compilation failed
    in require at /usr/lib/perl5/5.8.0/CGI.pm line 161. Compilation failed in
    require at /opt/rt3/bin/webmux.pl line 41. BEGIN failed–compilation aborted
    at/opt/rt3/bin/webmux.pl line 41. Compilation failed in require at (eval 4) line

[Fri May 09 12:17:22 2003] [error] Can’t load Perl file: /opt/rt3/bin/webmux.pl
for server rt.localhost:0, exiting…

**This is from apache2/error_log so you know a bit more about what’s going on:
[notice] Apache/2.0.45 (Gentoo/Linux)mod_perl/1.99_08 Perl/v5.8.0 configured –
resuming normal opertions

I confirmed that all the files mentioned are where they claim to be. I start
apache2 with the “-D PERL” option. I’m not sure what else to tell you folks,
I’ve been working on this furiously for a few days now, but don’t know much
about perl.

Thanks,
JSR/

Somebody yesterday said mod_perl wasn’t loaded.
I got the same error with the default Apache 2 web server in RedHat9.
Some of the CPAN scripts made tests for Apache 1.3 also, so it was just not worth it to me. Do you really need Apache 2.0?

If you want it done right you have to compile it yourself!

I believe the path of least resistance is

Apache 1.3.27 Index of /httpd
mod_perl 1.27 http://perl.apache.org/dist

according to instructions here: mod_perl: Getting Your Feet Wet

This works!

Greg

Gregory L. Hering
(256) 722-6420
4807 Bradford Dr
Benchmark Electronics, Inc.
Hunvtsville, Al 35805-----Original Message-----
From: Josiah Ritchie [mailto:jritchie@bible.edu]
Sent: Friday, May 09, 2003 12:35 PM
To: Request Tracker List
Subject: [rt-users] At apache start - Can’t locate object method “boot” via package “mod_perl”…

Here’s one for you folks. I’m trying to get rt running on Gentoo. I might be
needing a module. I’m using apache 2 with perl 1.99 and mysql. This error
message is delivered when trying to start apache.

  • Starting apache2…
    [Fri May 09 12:17:22 2003] [error] Can’t locate object method “boot” via package
    “mod_perl” at /usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache/Constants.pm line
  1. Compilation failed in require at
    /usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache.pm line 6. BEGIN
    failed–compilation aborted
    at/usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache.pm line 6. Compilation failed
    in require at /usr/lib/perl5/5.8.0/CGI.pm line 161. Compilation failed in
    require at /opt/rt3/bin/webmux.pl line 41. BEGIN failed–compilation aborted
    at/opt/rt3/bin/webmux.pl line 41. Compilation failed in require at (eval 4) line

[Fri May 09 12:17:22 2003] [error] Can’t load Perl file: /opt/rt3/bin/webmux.pl
for server rt.localhost:0, exiting…

**This is from apache2/error_log so you know a bit more about what’s going on:
[notice] Apache/2.0.45 (Gentoo/Linux)mod_perl/1.99_08 Perl/v5.8.0 configured –
resuming normal opertions

I confirmed that all the files mentioned are where they claim to be. I start
apache2 with the “-D PERL” option. I’m not sure what else to tell you folks,
I’ve been working on this furiously for a few days now, but don’t know much
about perl.

Thanks,
JSR/
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  • Josiah Ritchie [2003-05-09 13:37]:
  • Starting apache2…
    [Fri May 09 12:17:22 2003] [error] Can’t locate object method “boot” via package
    “mod_perl” at /usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache/Constants.pm …

Apache::Constants is, I believe, mod_perl 1 only.

(darren)


In order to make an apple pie from scratch, you must first create the
universe.
– Carl Sagan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+u+pIzsinjrVhZaoRAkOOAJ9xjdYcya45JAlu2tBMPTH6zz5smgCfUQoj
IfhHCyIL0JG3lC0fMB+oujQ=
=QN8a
-----END PGP SIGNATURE-----

darren chamberlain scripted ::

  • Josiah Ritchie [2003-05-09 13:37]:
  • Starting apache2…
    [Fri May 09 12:17:22 2003] [error] Can’t locate object method “boot” via
    package> “mod_perl” at
    /usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache/Constants.pm …

Apache::Constants is, I believe, mod_perl 1 only.

I’m running mod_perl 1.99.

Hmmm…
I’d rather get what I have now working. I’ve put to much time into it. The
readme indicates that it should work. I have another Gentoo machine I’m trying
to get that combination on, but I’m having a dickens of a time figuring out how
to get all the modules. It isn’t working even as smoothly.

I might go back yet though.

JSR/

Greg.Hering@bench.com scripted ::

  • Josiah Ritchie [2003-05-09 13:37]:
  • Starting apache2…
    [Fri May 09 12:17:22 2003] [error] Can’t locate object method “boot” via
    package> “mod_perl” at
    /usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache/Constants.pm …

darren chamberlain scripted ::

Apache::Constants is, I believe, mod_perl 1 only.

  • jritchie@bible.edu (Josiah Ritchie) [Fri 09 May 2003, 20:35 CEST]:

I’m running mod_perl 1.99.

mod_perl 1.99 should be considered “pre-2” as far as I’ve understood,
and doesn’t qualify as “mod_perl 1”.

-- Niels.

Niels Bakker scripted ::

  • Josiah Ritchie [2003-05-09 13:37]:
  • Starting apache2…
    [Fri May 09 12:17:22 2003] [error] Can’t locate object method “boot” via
    package> “mod_perl” at
    /usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache/Constants.pm …

darren chamberlain scripted ::

Apache::Constants is, I believe, mod_perl 1 only.

  • jritchie@bible.edu (Josiah Ritchie) [Fri 09 May 2003, 20:35 CEST]:

I’m running mod_perl 1.99.

mod_perl 1.99 should be considered “pre-2” as far as I’ve understood,
and doesn’t qualify as “mod_perl 1”.

So if I run that I should configure with perl2 at install?

JSR/

Yes, although my experience w Freebsd 4.7/apache 2.045/modperl1.99 & rt3.01 sent back to apache 1.37 & mod perl 1. The last combo worked as per the RT documentation without all the various Location and Directory Mason hacks required with Apache 2 and the modperl 1.99 (almost 2)

my 2c worth

BruceFrom: Josiah Ritchie [mailto:jritchie@bible.edu]
Sent: Monday, May 12, 2003 8:36 AM
To: Niels Bakker
Cc: Request Tracker List
Subject: Re: [rt-users] At apache start - Can’t locate object method
“boot” via package “mod_perl”…

Niels Bakker scripted ::

  • Josiah Ritchie [2003-05-09 13:37]:
  • Starting apache2…
    [Fri May 09 12:17:22 2003] [error] Can’t locate object method “boot” via
    package> “mod_perl” at
    /usr/lib/perl5/site_perl/5.8.0/i686-linux/Apache/Constants.pm …

darren chamberlain scripted ::

Apache::Constants is, I believe, mod_perl 1 only.

  • jritchie@bible.edu (Josiah Ritchie) [Fri 09 May 2003, 20:35 CEST]:

I’m running mod_perl 1.99.

mod_perl 1.99 should be considered “pre-2” as far as I’ve understood,
and doesn’t qualify as “mod_perl 1”.

So if I run that I should configure with perl2 at install?

JSR/
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

I guess I’m convinced, now I need to go clean up for a new run on installation
and configuration.

Thanks, josiah

Bruce Segal scripted ::