没有安装或安装?

时间:2014-07-06 13:41:12

标签: perl cpan

我在电脑上安装模块CPAN时遇到问题。 我想从CPAN安装一个模块,问题是......如果我执行该命令: perl -MCPAN -e 'install XML::DT' 答案是 : XML::DT is up to date (0.63). 但是当我尝试使用模块XML :: DT运行我的程序时,它告诉我我没有安装! 那么......我有什么选择来解决这个问题?

给我的错误是:

Can't locate XML/DT.pm in @INC (@INC contains: 
/Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 
/Network/Library/Perl/5.16/darwin-thread-multi-2level 
/Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 
/System/Library/Perl/5.16/darwin-thread-multi-2level 
/System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level 
/System/Library/Perl/Extras/5.16 .) at ./EX.pl line 2.
BEGIN failed--compilation aborted at ./EX.pl line 2.

0 个答案:

没有答案