calivw78 has asked for the wisdom of the Perl Monks concerning the following question:
Trying to index a set of text files using swish3. I believe there may be an issue due to some modules being installed via CPAN and others via package management. I was wondering if anyone could take a look at the output below and see if they noticed any issues. From what I can tell, the perl module does exist, and @inc is indeed looking in the location where the perl module is installed. My novice ways have failed me. Thanks in advance.
I believe that the new perl install for 5.10.1 is whats being used. The modules appear to be there as well. However, compilation errors abound.Line 21 of /usr/local/bin/swish3 is...[root@host]# swish3 -S mailfs -i /home/mail-archive/test/* Can't locate DateTime/Infinite.pm in @INC (@INC contains: /usr/local/l +ib/perl5/site_perl/5.10.1//usr/local/lib/perl5/5.10.1/BSDPAN /usr/loc +al/lib/perl5/site_perl/5.10.1//usr/local/lib/perl5/site_perl/5.10.1/m +ach /usr/local/lib/perl5/site_perl/5.10.1//usr/local/lib/perl5/site_p +erl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.1//usr/local/lib/perl5 +/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1//usr/local/lib/per +l5/5.10.1 /usr/local/lib/perl5/site_perl/5.10.1/. /usr/local/lib/perl +5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local +/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/loc +al/lib/perl5/5.10.1 .) at /usr/local/lib/perl5/site_perl/5.10.1/./Ros +e/DateTime/Util.pm line 8. BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5. +10.1/./Rose/DateTime/Util.pm line 8. Compilation failed in require at /usr/local/bin/swish3 line 21. BEGIN failed--compilation aborted at /usr/local/bin/swish3 line 21. [root@host]#
That module appears to still be installed okuse Rose::DateTime::Util qw(parse_date);
[root@system /]# cpan -D Rose::DateTime CPAN: Storable loaded ok (v2.20) Going to read '/.cpan/Metadata' Database was generated on Sat, 26 Mar 2011 05:28:30 GMT CPAN: LWP::UserAgent loaded ok (v6.00) CPAN: Time::HiRes loaded ok (v1.9719) Fetching with LWP: http://cpan.yimg.com/authors/01mailrc.txt.gz CPAN: YAML loaded ok (v0.72) Going to read '/.cpan/sources/authors/01mailrc.txt.gz' CPAN: Compress::Zlib loaded ok (v2.02) ...................................................................... +......DONE Fetching with LWP: http://cpan.yimg.com/modules/02packages.details.txt.gz Going to read '/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Tue, 03 May 2011 17:29:44 GMT ...................................................................... +......DONE Fetching with LWP: http://cpan.yimg.com/modules/03modlist.data.gz Going to read '/.cpan/sources/modules/03modlist.data.gz' ...................................................................... +......DONE Going to write /.cpan/Metadata Rose::DateTime ---------------------------------------------------------------------- +--- CPAN: Module::CoreList loaded ok (v2.18) DateTime helper functions and parser objects J/JS/JSIRACUSA/Rose-DateTime-0.535.tar.gz /usr/local/lib/perl5/site_perl/5.10.1/Rose/DateTime.pm Installed: 0.535 CPAN: 0.535 up to date John Siracusa (JSIRACUSA) siracusa@gmail.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems locating modules
by toolic (Bishop) on May 15, 2011 at 14:54 UTC | |
|
Re: Problems locating modules
by Khen1950fx (Canon) on May 15, 2011 at 17:21 UTC | |
by toolic (Bishop) on May 15, 2011 at 18:23 UTC | |
by Khen1950fx (Canon) on May 15, 2011 at 20:24 UTC | |
by toolic (Bishop) on May 15, 2011 at 21:12 UTC | |
by calivw78 (Initiate) on May 18, 2011 at 13:39 UTC | |
by Corion (Patriarch) on May 18, 2011 at 13:44 UTC | |
by calivw78 (Initiate) on May 31, 2011 at 17:04 UTC |