Undefined subroutine FirstMonday in RTx::Calendar

Just set up a new 3.6.3 install and installed RTx::Calendar (first time I’ve tried to use it), and am getting the error below.

I’ve checked the obvious things that I could think of, before I go really digging, does anyone have a solution off the top of their head?

System error
error:
Undefined subroutine &RTx::calendar::FirstMonday called at /opt/rt3/share/html/Search/Calendar.html line 134.
context:

130:
131:
my $rtdate = RT::Date->new($session{‘CurrentUser’});
132:
133:
my $today = DateTime->today;
134:
my $date = RTx::calendar::FirstMonday($Year, $Month + 1);
135:
my $end = RTx::calendar::LastSunday($Year, $Month + 1);
136:
137:

use this to loop over days until $end

138:
my $set = DateTime::Set->from_recurrence(

code stack:
/opt/rt3/share/html/Search/Calendar.html:134
/opt/rt3/share/html/autohandler:292

Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh@mqsoftware.com

If you go to your RT lib directory, and cd to where RTX::Calendar was installed, you probably will get an error about DateTime::Set[1] being missing, if you try to run: perl Calendar.pm.

Something like this:
/usr/local/share/request-tracker3.6/lib/RTx$ perl Calendar.pm
Can’t locate DateTime/Set.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at Calendar.pm line 5.
BEGIN failed–compilation aborted at Calendar.pm line 5.

This threw me off for quite a while, too.

[1] DateTime-Set-0.3900 - DateTime set objects - metacpan.org

Jacob Helwig
PC Technician
Busch’s Help Desk
Desk: x35221
Direct: 734-214-8221-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kelly F. Hickel
Sent: Monday, May 07, 2007 12:21 PM
To: RT Users
Subject: [rt-users] undefined subroutine FirstMonday in RTx::Calendar

Just set up a new 3.6.3 install and installed RTx::Calendar (first time I’ve tried to use it), and am getting the error below.

I’ve checked the obvious things that I could think of, before I go really digging, does anyone have a solution off the top of their head?

System error
error:
Undefined subroutine &RTx::calendar::FirstMonday called at /opt/rt3/share/html/Search/Calendar.html line 134.
context:

130:
131:
my $rtdate = RT::Date->new($session{‘CurrentUser’});
132:
133:
my $today = DateTime->today;
134:
my $date = RTx::calendar::FirstMonday($Year, $Month + 1);
135:
my $end = RTx::calendar::LastSunday($Year, $Month + 1);
136:
137:

use this to loop over days until $end

138:
my $set = DateTime::Set->from_recurrence(

code stack:
/opt/rt3/share/html/Search/Calendar.html:134
/opt/rt3/share/html/autohandler:292

Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh@mqsoftware.com

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Thanks Jacob, that did it.

I’ve updated the Wiki…

Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh@mqsoftware.com