[rt-users] switch-templates-to: Can't locate RT.pm in @INC

Florin Andrei florin at andrei.myip.org
Fri May 23 20:07:25 EDT 2014

Installed 4.2.4 on a fresh CentOS 6.5 system, then imported and upgraded 
the database from another system running 4.0.5

I got this:

# /opt/rt4/etc/upgrade/switch-templates-to html
Can't locate RT.pm in @INC (@INC contains: lib local/lib 
/usr/local/lib64/perl5 /usr/local/share/perl5 
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl 
/usr/lib64/perl5 /usr/share/perl5 .) at 
/opt/rt4/etc/upgrade/switch-templates-to line 55.
BEGIN failed--compilation aborted at 
/opt/rt4/etc/upgrade/switch-templates-to line 55.

But then I created this environment variable...


...and everything was fine.

Shouldn't there be either an automatic way of creating this variable, or 
a more prominent warning during installation that things won't work well 
unless you do this?

Florin Andrei

More information about the rt-users mailing list