in reply to Re^2: Problems locating modules
in thread Problems locating modules

Maybe you have an old (or broken) installation of DateTime? At least DateTime 0.70 has these two lines:

use constant INFINITY => ( 9**9**9 ); use constant NEG_INFINITY => -1 * ( 9**9**9 );

Also, why are you testing the Perl module/program through "swish" instead of trying to eliminate the irrelevant parts? I would start with perl -MDateTime::Infinity -e1 resp. perl -MDateTime -e1 and slowly work my way up the chain until things fail.

Replies are listed 'Best First'.
Re^4: Problems locating modules
by calivw78 (Initiate) on May 31, 2011 at 17:04 UTC

    the swish3 index is what I am trying to get to work, so my approach was to continue to run it until I didn't get any errors. My Nodelet status is not without reason :) So, I ran:

    perl -MDateTime -e1

    No errors or output of any kind. I appear to be running DateTime 0.70 as mentioned

    [root@host /usr/home/user]# cpan DateTime CPAN: Storable loaded ok (v2.25) Going to read '/home/user/.cpan/Metadata' Database was generated on Tue, 31 May 2011 09:28:15 GMT CPAN: Module::CoreList loaded ok (v2.49) DateTime is up to date (0.70).

    Now, when I check DateTime::Infinity, it's a different story

    [root@host /usr/home/user]# perl -MDateTime::Infinity -e1 Can't locate DateTime/Infinity.pm in @INC (@INC contains: /usr/local/l +ib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /us +r/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach / +usr/local/lib/perl5/5.10.1 .). BEGIN failed--compilation aborted.

    Looking more, it seems I was maybe getting DateTime::Infinite and DateTime::Infinity confused, of which the later appears to not exist?