[rt-users] Can't locate Plack/Handler/Apache2.pm
Stephen J Alexander
sjalexander at mpbx.com
Mon Apr 23 07:59:12 EDT 2012
The following is from a perl guy perspective (I'm no expert with RT). I
don't remember what options are available during build and install, but in
the source files it looks like /usr/bin/perl is hardcoded. So unless there
is a simpler way I don't know about, you would need to change them to point
to /usr/local/bin/perl (or whatever path you've installed the new perl on).
The files that call /usr/bin/perl within my RT installation are:
./bin/rt-mailgate
./bin/importusers.pl
./bin/rt
./bin/rt-crontool
./sbin/rt-email-group-admin
./sbin/rt-server
./sbin/rt-setup-database
./sbin/rt-setup-fulltext-index
./sbin/rt-shredder
./sbin/rt-attributes-viewer
./sbin/rt-email-dashboards
./sbin/rt-session-viewer
./sbin/standalone_httpd
./sbin/rt-preferences-viewer
./sbin/rt-server.fcgi
./sbin/rt-clean-sessions
./sbin/rt-test-dependencies
./sbin/rt-dump-metadata
./sbin/rt-validator
./sbin/rt-fulltext-indexer
./sbin/rt-email-digest
As I mentioned in a previous post, it's a bad idea to mix your perl
environments, so you may want, at a minimum, to 'yum reinstall perl' so
that your distro perl doesn't cause you headaches later.
Regards,
Stephen J Alexander
MPBX, LLC
http://mpbx.com
832-713-6729
On Mon, Apr 23, 2012 at 6:19 AM, Jacobo Urdiales
<jacobo.urdiales at cekon.es>wrote:
> Hi all,
> I am trying to install RT 4.0.5 con a Centos 5
> Have gone through all the install steps (even the perl cpan stuff...) and
> build the database under Mysql.
> Now I have created a file in /etc/httpd/conf.d/rt.conf with the following
> stuff
>
> <VirtualHost rt.mydomain.com>
> # Optional apache logs for RT
> # ErrorLog /opt/rt4/var/log/apache2.error
> # TransferLog /opt/rt4/var/log/apache2.**access
> # LogLevel debug
>
> AddDefaultCharset UTF-8
> DocumentRoot "/opt/rt4/share/html"
>
> <Location />
> Order allow,deny
> Allow from all
>
> SetHandler modperl
> PerlResponseHandler Plack::Handler::Apache2
> PerlSetVar psgi_app /opt/rt4/sbin/rt-server
> </Location>
> <Perl>
> use Plack::Handler::Apache2;
> Plack::Handler::Apache2->**preload("/opt/rt4/sbin/rt-**
> server");
> </Perl>
> </VirtualHost>
>
> But upon restarting apache i get this error
>
> Can't locate Plack/Handler/Apache2.pm in @INC (@INC contains:
> /usr/lib/perl5/site_perl/5.8.**8/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.**8.8/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.**8.8 /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/5.8.8/i386-**linux-thread-multi /usr/lib/perl5/5.8.8 .
> /etc/httpd) at /etc/httpd/conf.d/rt.conf line 11.\nBEGIN
> failed--compilation aborted\t(in cleanup) Can't locate
> Plack/Handler/Apache2.pm in @INC (@INC contains:
> /usr/lib/perl5/site_perl/5.8.**8/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.**8.8/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.**8.8 /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/5.8.8/i386-**linux-thread-multi /usr/lib/perl5/5.8.8 .
> /etc/httpd) at /etc/httpd/conf.d/rt.conf line 11.\nBEGIN
> failed--compilation aborted at /etc/httpd/conf.d/rt.conf line 11.\n
>
> The point is that I installed perl version 5.14 and compiled rt eith that
> also installed the modules under that version. But I do not know why seems
> that apache or whatever has the old path.
> Tried to modify (even copy) the path contents to old locations but more
> errors rise..
>
> Can you help me?
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120423/1b2a86c4/attachment.htm>
More information about the rt-users
mailing list