[rt-users] timeworked.pl requires every extension lib to be added?

Fran Fabrizio fran at cis.uab.edu
Fri Sep 25 22:45:08 EDT 2009


Jo,

I did not experience that, the version I shared on the list is exactly 
as it runs in my environment, it must be something specific to your RT 
setup if you are needing to add multiple entries to the use lib line. 
Others on the list have also used it successfully without having that 
issue.  Are you sure you are putting the root directory of the RT libs, 
and not the full path to each and every lib?

As far as which modules are required - that's largely a function of RT 
modules using other RT modules - it's not me using them directly.  I use 
only a handful, as you can see from the code.

It's pretty standard perl use lib methodology I am using, I am not doing 
anything fancy or unusual.  It just needs to be pointed to the root of 
wherever you installed your RT libs.

-Fran

On 9/25/2009 8:02 PM, Jo Rhett wrote:
> So I'm testing out your time worked report, and I'm finding that each
> and every extension I've added needs to be put in your "use lib" line.
> Couldn't you simplify this and use the same lib path adjustment as the
> main RT instance? Or better yet, not include the extensions? Do you
> really need them?
>
> [rtweb at kininvie ~]$ ./timeworked.pl --startdate 2009-09-20 --enddate
> 2009-09-27 --queues Support --debug
> DEBUG: Time zone offset is -25200.
> DEBUG: Using starting date string 2009-09-20 07:00:00
> DEBUG: Using ending date string 2009-09-27 07:00:00
> Can't locate RT/FM.pm in @INC (@INC contains: /d/u/rtweb/../local/lib
> /d/u/rtweb/../lib /u/rtweb/rt38/lib /usr/local/lib/perl5/5.8.8/BSDPAN
> /usr/local/lib/perl5/site_perl/5.8.8/mach
> /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
> /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at
> /u/rtweb/rt38/lib/RT.pm line 628.
>
> * edits use lib line...
>
> $ ./timeworked.pl --startdate 2009-09-20 --enddate 2009-09-27 --queues
> Support --debug
> DEBUG: Time zone offset is -25200.
> DEBUG: Using starting date string 2009-09-20 07:00:00
> DEBUG: Using ending date string 2009-09-27 07:00:00
> Can't locate RT/Extension/ForkTicket.pm in @INC (@INC contains:
> /d/u/rtweb/../local/lib /d/u/rtweb/../lib /u/rtweb/rt38/lib
> /u/rtweb/rt38/local/plugins/RT-FM/lib /usr/local/lib/perl5/5.8.8/BSDPAN
> /usr/local/lib/perl5/site_perl/5.8.8/mach
> /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
> /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at
> /u/rtweb/rt38/lib/RT.pm line 628.
>
> * edits use lib line...
>
> (next error)
>
> * smacks head against table
>
> ;-)
>
> --
> Jo Rhett
> Net Consonance : consonant endings by net philanthropy, open source and
> other randomness
>

-- 
Fran Fabrizio
Senior Systems Analyst
Department of Computer and Information Sciences
University of Alabama at Birmingham
http://www.cis.uab.edu/
205.934.0653



More information about the rt-users mailing list