[rt-users] Problems with " Can't locate Apache/Constants.pm in @INC" in RT

Rafael Righi rafael at pop-sc.rnp.br
Fri Jan 16 14:23:31 EST 2004


Hello all,

I have installed in my machine the Apache 2.0.48 and Mod_perl 2.0 (1.99).
When I installed the Request Tracker , some problems appeared.

I use Debian in stable version and my perl version is 5.6.1.
I used "./configure" with its parameters and follow the tips located in the 
Draft Manual of RT.

When I started the httpd daemon, this error ocurred:

[Fri Jan 16 16:53:14 2004] [error] Can't locate Apache/Constants.pm in @INC 
(@INC contains: /usr/local/local/lib /usr/local/lib /usr/local/lib/
perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/
lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl . /usr/local/
httpd/ /usr/local/httpd/lib/perl) at /usr/local/share/perl/5.6.1/HTML/Mason/
ApacheHandler.pm line 13.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.6.1/HTML/Mason/
ApacheHandler.pm line 13.
Compilation failed in require at /usr/local/bin/webmux.pl line 58.
BEGIN failed--compilation aborted at /usr/local/bin/webmux.pl line 64.
Compilation failed in require at (eval 2) line 1.

** Apache::Constants is udes just with mod_perl1? Why this module is
required when I use mod_perl2? **

My http.conf contain:

<VirtualHost xxx.xxx.xxx.xxx>
        ServerName ticket.xxx.xxx..br
        ServerAlias www.ticket.xxxx.xxxx.br
        ServerAdmin rafael at xxx.xxx.xxx.br
        DocumentRoot /usr/local/share/html
        AddDefaultCharset UTF-8

        RedirectMatch permanent (.*)/$ http://xxx.xxx.xxx.br$1/index.html

        PerlModule Apache2
        PerlModule Apache::compat
        PerlModule Apache::DBI
#       PerlModule HTML::Mason::ApacheHandler
        PerlRequire /usr/local/bin/webmux.pl

        <FilesMatch "\.html$">
                SetHandler perl-script
                PerlHandler RT::Mason
#              PerlHandler HTML::Mason::ApacheHandler
        </FilesMatch>

Thank you for your help.
Best regards,

Rafael Righi -- Brazil




More information about the rt-users mailing list