apacheperlhttprt

Why do I get the error 'Can't locate Plack/Handler/Apache2.pm in @INC' when I install Request Tracker on CentOS 7?


I am installing Request Tracker on my CentOS 7 machine. When I start the httpd server, I get the following error:

Can't locate Plack/Handler/Apache2.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /etc/httpd/conf.d/rt.conf line 17.\nBEGIN failed--compilation aborted

Any idea on why I am getting this error?


Solution

  • Plack::Handler::Apache2 isn't part of the standard Perl installation. You need to install it separately. It's part of the Plack distribution, so one easy way to install it is with:

    $ sudo yum install perl-Plack