Apache mod_perl/rt2 issue

This probably is more of a mod_perl issue, and not a rt2 issue, but I
thought someone else might have run into this (or know how to fix it.)

New rt2 installation, with the following in my httpd.conf:

#rt2 stuff
<VirtualHost 208.0.0.0>
DocumentRoot /local/rt2/WebRT/html
ServerName rt2.xxxx.com
PerlModule Apache::DBI
PerlRequire /local/rt2/bin/webmux.pl

SetHandler perl-script
PerlHandler RT::Mason

When trying to start apache, I get the following problem:

[root@unix conf]# /local/apache/bin/apachectl start
[Wed Jul 18 18:58:49 2001] [error] Can’t locate object method “TIEHASH” via
package “Apache::Table” at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 365.
Compilation failed in require at /local/rt2/bin/webmux.pl line 18.
BEGIN failed–compilation aborted at /local/rt2/bin/webmux.pl line 18.
Compilation failed in require at (eval 4) line 1.

Syntax error on line 963 of /local/apache/conf/httpd.conf:
Can’t locate object method “TIEHASH” via package “Apache::Table” at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 365.
Compilation failed in require at /local/rt2/bin/webmux.pl line 18.
BEGIN failed–compilation aborted at /local/rt2/bin/webmux.pl line 18.
Compilation failed in require at (eval 4) line 1.

/local/apache/bin/apachectl start: httpd could not be started

Any ideas?

thanks
bill

Bill Petrisko wrote:

[root@unix conf]# /local/apache/bin/apachectl start
[Wed Jul 18 18:58:49 2001] [error] Can’t locate object method “TIEHASH” via
package “Apache::Table” at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 365.

What version of HTML::Mason do you have? What does ``make testdeps’’ say?

This was asked on the list last month, but I didn’t see a resolution.
I just started bringing up rt2 under Solaris 8, and I’ve got a problem.
I’m not very familiar with mod_perl per se, mostly using php and fastcgi
in the past.

i.e.

perl_tie_hash: Can’t locate object method “TIEHASH” via package “Apache::Table” (perhaps you forgot to load “Apache::Table”?) at /opt/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 365.
[Sat Aug 4 16:51:25 2001] [error] Can’t locate object method “get” via package “Apache::Table” (perhaps you forgot to load “Apache::Table”?) at /opt/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 365.
Compilation failed in require at /opt/local/rt2/bin/webmux.pl line 18.
BEGIN failed–compilation aborted at /opt/local/rt2/bin/webmux.pl line 18.
Compilation failed in require at (eval 4) line 1.

Syntax error on line 12 of /opt/local/rt2/ssl/conf/httpsd-mod-perl.conf:
Can’t locate object method “get” via package “Apache::Table” (perhaps you forgot to load “Apache::Table”?) at /opt/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 365.
Compilation failed in require at /opt/local/rt2/bin/webmux.pl line 18.
BEGIN failed–compilation aborted at /opt/local/rt2/bin/webmux.pl line 18.
Compilation failed in require at (eval 4) line 1.

I’ve reloaded and rebuilt all the pertinent modules, can’t make this
go away.

“make testdep” seems fine.

Len

This should be a FAQ.

The relevant piece is that when you build mod_perl you need to do
something like:

perl Makefile.PL EVERYTHING=1

or if you don’t want everything enabled, try:

perl Makefile.PL PERL_TABLE_API=1

(This bit me just a day or so ago.)

I think for good measure I actually used:

perl Makefile.PL EVERYTHING=1 PERL_TABLE_API=1On Sat, 4 Aug 2001, Len Rose wrote:

Date: Sat, 4 Aug 2001 22:16:56 -0400
From: Len Rose len@netsys.com
To: rt-users@lists.fsck.com
Subject: [rt-users] Apache mod_perl/rt2 issue

This was asked on the list last month, but I didn’t see a resolution.
I just started bringing up rt2 under Solaris 8, and I’ve got a problem.
I’m not very familiar with mod_perl per se, mostly using php and fastcgi
in the past.

i.e.

perl_tie_hash: Can’t locate object method “TIEHASH” via package “Apache::Table” (perhaps you forgot to load “Apache::Table”?) at /opt/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 365.
[Sat Aug 4 16:51:25 2001] [error] Can’t locate object method “get” via package “Apache::Table” (perhaps you forgot to load “Apache::Table”?) at /opt/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 365.
Compilation failed in require at /opt/local/rt2/bin/webmux.pl line 18.
BEGIN failed–compilation aborted at /opt/local/rt2/bin/webmux.pl line 18.
Compilation failed in require at (eval 4) line 1.

Syntax error on line 12 of /opt/local/rt2/ssl/conf/httpsd-mod-perl.conf:
Can’t locate object method “get” via package “Apache::Table” (perhaps you forgot to load “Apache::Table”?) at /opt/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 365.
Compilation failed in require at /opt/local/rt2/bin/webmux.pl line 18.
BEGIN failed–compilation aborted at /opt/local/rt2/bin/webmux.pl line 18.
Compilation failed in require at (eval 4) line 1.

I’ve reloaded and rebuilt all the pertinent modules, can’t make this
go away.

“make testdep” seems fine.

Len


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