Can't load perl file webmux.pl?

Hi,

OK I have got to this point anyone have any ideas? The file does exist why
am I having this problem?

./apachectl start
[Thu Jul 31 13:18:49 2003] [error] Global $r object is not available. Set:
PerlOptions +GlobalRequest
in httpd.conf at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 579.
Compilation failed in require at (eval 4) line 1.

[Thu Jul 31 13:18:49 2003] [error] Can’t load Perl file:
/opt/rt3/bin/webmux.pl for server valhalla:0, exiting…

Sullivan, Robert (HQP) wrote:

Hi,

OK I have got to this point anyone have any ideas? The file does exist
why am I having this problem?

./apachectl start
[Thu Jul 31 13:18:49 2003] [error] Global $r object is not available.
Set:
PerlOptions +GlobalRequest
in httpd.conf at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line
579.
Compilation failed in require at (eval 4) line 1.

[Thu Jul 31 13:18:49 2003] [error] Can’t load Perl file:
/opt/rt3/bin/webmux.pl for server valhalla:0, exiting…

This is a problem with the most recent mod_perl. I have solved this
with a hack provided by another list member:

require Apache::RequestUtil;
no warnings ‘redefine’;
my $sub = *Apache::request{CODE};
*Apache::request = sub {
my $r;
eval { $r = $sub->(‘Apache’); };
# warn $@ if $@;
return $r;
};

Place that block in webmux.pl right after the BEGIN block.

Ugly, I hope I can eventually remove it, but it works for now.

The API for mod_perl2 hasn’t stabilized yet and mason needs to be beaten
to behave. Brook has a patch that’s due for application before 3.0.5
that deals for RT. But really, mod_perl2 is still in beta and I don’t
expect it to be consistent from release to release.On Thu, Jul 31, 2003 at 01:22:05PM -0700, Sullivan, Robert (HQP) wrote:

Hi,

OK I have got to this point anyone have any ideas? The file does exist why
am I having this problem?

./apachectl start
[Thu Jul 31 13:18:49 2003] [error] Global $r object is not available. Set:
PerlOptions +GlobalRequest
in httpd.conf at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 579.
Compilation failed in require at (eval 4) line 1.

[Thu Jul 31 13:18:49 2003] [error] Can’t load Perl file:
/opt/rt3/bin/webmux.pl for server valhalla:0, exiting…

http://www.bestpractical.com/rt – Trouble Ticketing. Free.