I am attempting to set up RT/IR and have run into a problem.
When running perl Makefile.pl on the IR add-on I get:
MakeMaker attribute “VERSION_FROM” is overriden; use “makemaker_append” to
append values
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies…
[Core Features]
but after completing make, make install, etc I try to restart apache & I
get the following in the error log:
[Tue Feb 05 13:03:12 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
[Tue Feb 05 13:03:12 2013] [error] Can’t load Perl file: /opt/rt3/bin/
webmux.pl for server rt.sonic.pri:0, exiting…
[Tue Feb 05 13:03:27 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
[Tue Feb 05 13:03:27 2013] [error] Can’t load Perl file: /opt/rt3/bin/
webmux.pl for server rt.sonic.pri:0, exiting…
[Tue Feb 05 13:04:35 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
[Tue Feb 05 13:04:35 2013] [error] Can’t load Perl file: /opt/rt3/bin/
webmux.pl for server rt.sonic.pri:0, exiting…
It appears that though it passed the dependancies, Business/Hours.pm etc
are not on my system.
How can I get them?
Thank you for your help, I am very green when it comes to RT.
When running perl Makefile.pl on the IR add-on I get:
If you run perl -V as the same user that you ran perl Makefile.PL as,
are the INC directories the same as listed below, or are apache and
your user using different perl versions?
Also, go find the installed Business::Hours module (perldoc -l
Business::Hours is helpful) and make sure that apache can read it.
Check permissions and things like selinux.
Thanks for the help! It was not in the @INC path. I am up and running!
Now to just figure out how best to utilize it…
Kevin Holleran
Master of Science, Computer Information Systems
Grand Valley State University
Master of Business Administration
Western Michigan University
SANS GCFA, SANS GCFE, CCNA, ISA, MCSA, MCDST, MCP
“Do today what others won’t, do tomorrow what others can’t” - SEALFit
“We are what we repeatedly do. Excellence, then, is not an act, but a
habit.” - AristotleOn Tue, Feb 5, 2013 at 5:26 PM, Kevin Falcone falcone@bestpractical.comwrote:
On Tue, Feb 05, 2013 at 04:10:08PM -0500, Kevin Holleran wrote:
When running perl Makefile.pl on the IR add-on I get:
If you run perl -V as the same user that you ran perl Makefile.PL as,
are the INC directories the same as listed below, or are apache and
your user using different perl versions?
Also, go find the installed Business::Hours module (perldoc -l
Business::Hours is helpful) and make sure that apache can read it.
Check permissions and things like selinux.
Thanks for the help! It was not in the INC path. I am up and running!
Now to just figure out how best to utilize it…
–Kevin HolleranMaster of Science, Computer Information SystemsGrand Valley
State UniversityMaster of Business AdministrationWestern Michigan UniversitySANS
GCFA, SANS GCFE, CCNA, ISA, MCSA, MCDST, MCP
“Do today what others won’t, do tomorrow what others can’t” - SEALFit
“We are what we repeatedly do. Excellence, then, is not an act, but a habit.”
Aristotle
When running perl Makefile.pl on the IR add-on I get:
If you run perl -V as the same user that you ran perl Makefile.PL as,
are the INC directories the same as listed below, or are apache and
your user using different perl versions?
Also, go find the installed Business::Hours module (perldoc -l
Business::Hours is helpful) and make sure that apache can read it.
Check permissions and things like selinux.
-kevin
As stated, I just used per -l Business::Hours & found that the path those
were at was not in the @INC path. At that point, move them or include it
in the path.
Hope this helps.
Kevin Holleran
Master of Science, Computer Information Systems
Grand Valley State University
Master of Business Administration
Western Michigan University
SANS GCFA, SANS GCFE, CCNA, ISA, MCSA, MCDST, MCP
“Do today what others won’t, do tomorrow what others can’t” - SEALFit
“We are what we repeatedly do. Excellence, then, is not an act, but a
habit.” - AristotleOn Thu, Feb 7, 2013 at 3:35 AM, Andy_R andyrat@icloud.com wrote:
Kevin Holleran <kdawg44@…> writes:
Thanks for the help! It was not in the INC path. I am up and
running!
Now to just figure out how best to utilize it…
–Kevin HolleranMaster of Science, Computer Information SystemsGrand
Valley
State UniversityMaster of Business AdministrationWestern Michigan
UniversitySANS
GCFA, SANS GCFE, CCNA, ISA, MCSA, MCDST, MCP
“Do today what others won’t, do tomorrow what others can’t” - SEALFit
“We are what we repeatedly do. Excellence, then, is not an act, but a
habit.”
Aristotle
On Tue, Feb 5, 2013 at 5:26 PM, Kevin Falcone <falcone- nlQc9UtUHLIhHuQSKHfHZAC/G2K4zDHf@public.gmane.org> wrote:
On Tue, Feb 05, 2013 at 04:10:08PM -0500, Kevin Holleran wrote:
When running perl Makefile.pl on the IR add-on I get:
If you run perl -V as the same user that you ran perl Makefile.PL as,
are the INC directories the same as listed below, or are apache and
your user using different perl versions?
Also, go find the installed Business::Hours module (perldoc -l
Business::Hours is helpful) and make sure that apache can read it.
Check permissions and things like selinux.
-kevin
Kevin,
Thanks but that does not work for me.
root@rtir:~/RT-IR-2.6.1# perl -l Business::Hours
Can’t open perl script “Business::Hours”: No such file or directory
root@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@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…
root 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 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 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…
This is the build location for the cpan command line client
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.
This really isn’t the right way to install perl modules and will break
badly when you get to more complicated perl modules.
The right solution is finding out why it was built but not installed
(or installed to the wrong locations).
As I mentioned in my reply, running
cpan
i Business::Hours
Will tell you exactly where cpan thinks the module is installed.
I was waiting for that information from the original requestor.