[rt-users] Can't locate object method "now" via package "DateTime"

Jeff Blaine jblaine at kickflop.net
Tue Mar 23 11:22:39 EDT 2010


On 3/23/2010 11:07 AM, Kevin Falcone wrote:
> On Mon, Mar 22, 2010 at 01:13:03PM -0400, Jeff Blaine wrote:
>> 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.

> 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
>
>
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com



More information about the rt-users mailing list