Can't locate object method "now" via package "DateTime"

Hi folks – does anyone have any idea what is wrong here?

‘make testdeps’ was perfectly happy at install time and
everything else appears to work just fine.

RT 3.8.7

Preferences -> About Me

Error during compilation of /apps/rt/share/html/Elements/SelectTimezone:
Can’t locate object method “now” via package “DateTime” at
/apps/rt/share/html/Elements/SelectTimezone line 58. Stack:
[/apps/rt/share/html/Elements/SelectTimezone:58]
[/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm:816]
[/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm:445]
[/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1127]
[/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1060]
[/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1239]
[/apps/rt/share/html/User/Prefs.html:83]
[/apps/rt/share/html/Widgets/TitleBox:51]
[/apps/rt/share/html/User/Prefs.html:86]
[/apps/rt/bin/…/lib/RT/Interface/Web.pm:320]
[/apps/rt/bin/…/lib/RT/Interface/Web.pm:224]
[/apps/rt/share/html/autohandler:53]

Hi folks – does anyone have any idea what is wrong here?

‘make testdeps’ was perfectly happy at install time and
everything else appears to work just fine.

Which version of DateTime do you have installed?

perl -MDateTime\ 9

-kevin

Hmm, I never saw Kevin Falcone’s original response until
I browsed the rt-users archive just now.

http://lists.bestpractical.com/pipermail/rt-users/2010-March/063739.html

Which version of DateTime do you have installed?

perl -MDateTime\ 9

-kevin

Answer: the latest from CPAN

perl -MDateTime\ 9

DateTime version 9 required–this is only version 0.55.
BEGIN failed–compilation aborted.

http://search.cpan.org/dist/DateTime/

Very confused. Where does one get version 9 of DateTime?

Hmm, I never saw Kevin Falcone’s original response until
I browsed the rt-users archive just now.

http://lists.bestpractical.com/pipermail/rt-users/2010-March/063739.html

Which version of DateTime do you have installed?

perl -MDateTime\ 9

-kevin

Answer: the latest from CPAN

perl -MDateTime\ 9

DateTime version 9 required–this is only version 0.55.
BEGIN failed–compilation aborted.

Interesting, even upgrading I can’t replicate this.
You may need to tell us more about your setup or do a little more
digging.

Does something as simple as
perl -e 'require DateTime; my $dt = DateTime->now’
fail?

http://search.cpan.org/dist/DateTime/

Very confused. Where does one get version 9 of DateTime?

There is no version 9, but it is a simple command line technique to
discover your installed version (older versions of DateTime had some
interesting TimeZone bugs in conjunction with RT’s code)

-kevin

Hmm, I never saw Kevin Falcone’s original response until
I browsed the rt-users archive just now.

http://lists.bestpractical.com/pipermail/rt-users/2010-March/063739.html

Which version of DateTime do you have installed?

perl -MDateTime\ 9

-kevin

Answer: the latest from CPAN

perl -MDateTime\ 9

DateTime version 9 required–this is only version 0.55.
BEGIN failed–compilation aborted.

Interesting, even upgrading I can’t replicate this.
You may need to tell us more about your setup or do a little more
digging.

I “solved” it by making /usr/lib/perl5 and /usr/lib64/perl5
have the same DateTime* files and restarting httpd (why
that was required, I don’t know, but it still didn’t work
until I did).

I will work harder at solving it the next time I come across
it on a new RT install.