Date::Calc 为什么装不上呢?

Date::Calc 为什么装不上呢?

Date::Calc 为什么装不上呢?
Can't locate loadable object for module Date::Calc in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i386-linux-thread-multi /usr/lib/perl5/5.8.6 .) at extract.pl line 14



我已经cpan install Date::Calc了,但是程序执行还是提示这个信息,请帮忙看看,谢谢。
没有人知道吗--.
没有人知道吗
是否是以 root 身份安装的.
是否是以 root 身份安装的模块?

或者检查安装的路径,如果不再所列出的路径中,用

use lib ...;





   

是root安装的。执行也是RO.
是root安装的。执行也是ROOT
[root@localhost GetSelle.
[root@localhost GetSellerTransactions]# . type.sh
2008-12-05T07:00:00.000Z
2008-12-05 is the file directoy name
2008-12-05.1 is the filename
2008-12-05.1 is the filename, open to write
Total is:1 after parse the XML response.
result/2008-12-05.1
Can't locate loadable object for module Date::Calc in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i386-linux-thread-multi /usr/lib/perl5/5.8.6 .) at extract.pl line 14
Compilation failed in require at extract.pl line 14.
BEGIN failed--compilation aborted at extract.pl line 14.
Can't locate loadable object for module Date::Calc in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i386-linux-thread-multi /usr/lib/perl5/5.8.6 .) at insert.pl line 17
Compilation failed in require at insert.pl line 17.
BEGIN failed--compilation aborted at insert.pl line 17.
There is no Chinese second chance offer available.
[root@localhost AddSecondChanceItem]# cd /
[root@localhost /]# find . -name "Calc.*"
find: WARNING: Hard link count is wrong for ./proc: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
./usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/Date/Calc.pm
./usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/Date/Calc.pod
./usr/lib/perl5/5.8.6/i386-linux-thread-multi/Date/Calc.pm
./usr/lib/perl5/5.8.6/i386-linux-thread-multi/Date/Calc.pod
./usr/lib/perl5/5.8.6/Math/BigInt/Calc.pm
[root@localhost /]#


系统中是有Calc.pm的。
不清楚你用的是什么 linux.
不清楚你用的是什么 linux 发行版。

如果实在不行,就在脚本的开头加上 use lib 语句:

#!/usr/bin/perl

use strict;
use warnings;

use lib "/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/";