[rt-users] Can't start Apache after installing RT 2.0.13

Frederic Gobin frederic.gobin at mindmatics.de
Tue Apr 23 04:39:50 EDT 2002


Each time I try to start apache with

    apachectl start

I get an error :

    Variable "$m" is not imported at /usr/local/rt2/bin/webmux.pl line 94.
    [Mon Apr 22 15:37:27 2002] [error] Global symbol "$m" requires 
explicit package name at /usr/local/rt2/bin/webmux.pl line 94.
    Compilation failed in require at (eval 1) line 1.

    Syntax error on line 587 of /usr/local/apache/conf/httpd.conf:
    Global symbol "$m" requires explicit package name at 
/usr/local/rt2/bin/webmux.pl line 94.
    Compilation failed in require at (eval 1) line 1.

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

Here is the part of my httpd.conf I changed :

    Alias /rt2 "/usr/local/rt2/WebRT/html"
    PerlRequire /Usr/local/rt2/bin/webmux.pl

    <Location /rt2>
        SetHandler perl-script
        PerlHandler RT::Mason
    </Location>
</IfModule>

And here is the relevant part of my webmux.pl

    use Apache::Session::File;

    #...
    sub SetContentType {
        my $type = shift;
        $RT::Mason::r->content_type($type);
    }

    sub CGIObject {
        $m->cgi_object();
    }

}

The line with the $m is the line 94 and the only one with $m ...

Whats going wrong ?





More information about the rt-users mailing list