[Rtir] Apache Error after Installation of IR add-on

Martin mworia.martin at gmail.com
Wed Feb 20 03:02:45 EST 2013


Kevin Falcone <falcone at ...> writes:

> 
> On Fri, Feb 08, 2013 at 03:02:25PM +0000, Andy_R wrote:
> > root <at> rtir:~/RT-IR-2.6.1# perl -l Business::Hours
> > Can't open perl script "Business::Hours": No such file or directory
> 
> perldoc -l Business::Hours
> not 
> perl -l Business::Hours
> 
> You also need to provide perl -V
> 
> -kevin
> 
> > root <at> rtir:~/RT-IR-2.6.1# cpan Business::Hours
> > Going to read '/root/.cpan/Metadata'
> >   Database was generated on Thu, 07 Feb 2013 22:53:03 GMT
> > Business::Hours is up to date (0.10).
> > 
> > If I edit /opt/rt3/etc/RT_Config.pm 
> > root <at> rtir:~/RT-IR-2.6.1# vi /opt/rt3/etc/RT_Config.pm 
> > If the plugins are set to this apache2 starts without erros:
> > 
> > Set(@Plugins,qw(RT::FM));
> > 
> > The Instructions in IR says to change that to this:
> > Set(@Plugins, 'RT::FM', 'RT::IR');
> > 
> > Now apache2 won't start
> > [Fri Feb 08 12:58:46 2013] [notice] caught SIGTERM, shutting down
> > [Fri Feb 08 12:58:52 2013] [error] Can't locate Business/Hours.pm in @INC 
(@INC
> > contains: /opt/rt3/bin/../local/lib /opt/rt3/local/plugins/RT-FM/lib
> > /opt/rt3/local/plugins/RT-IR/lib /opt/rt3/bin/../lib /etc/perl
> > /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
> > /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
> > /usr/local/lib/site_perl . /etc/apache2) at
> > /opt/rt3/local/plugins/RT-IR/lib/RT/IR.pm line 56.\nBEGIN failed--
compilation
> > aborted at /opt/rt3/local/plugins/RT-IR/lib/RT/IR.pm line 56.\nCompilation
> > failed in require at /opt/rt3/bin/../lib/RT.pm line 670.\nCompilation failed 
in
> > require at (eval 2) line 1.\n
> > [Fri Feb 08 12:58:52 2013] [error] Can't load Perl file: 
/opt/rt3/bin/webmux.pl
> > for server rtir.nswcsystemsltd.local:0, exiting...
> > 
> > Any ideas?
> > 
> > Kind regards,
> > Andy
> > CISSP, GCIA, GCIH, GPEN, GWAPT
> > InfoSecMatters.blogspot.co.uk
> > 
> > _______________________________________________
> > Rtir mailing list
> > Rtir at ...
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rtir
> 
Hi Andy

Been through a similar problem in the recent past. The problem is the path to 
Business::Hours is not in the @INC path as in my case

try to find it on the system using   find / -iname "hours.pm"

I bet it will be at this location since you have Business::Hours 0.10

 /root/.cpan/build/Business-Hours-0.10-UqgfYQ/lib/Business/Hours.pm

now copy it to this location /usr/share/perl5/Business

do
cat /root/perl5/lib/perl5/Business/Hours.pm >> 
/usr/share/perl5/Business/Hours.pm

once you are done try restart your apache. any other modules turn out missing 
use those steps.

good luck hope this works





More information about the Rtir mailing list