得到错误"无法在@INC"中找到HTML / TreeBuilder / XPath.pm

时间:2012-09-27 06:08:32

标签: perl perl-module

运行我的perl文件时出现以下错误

Can't locate HTML/TreeBuilder/XPath.pm in @INC (@INC contains: C:/Perl/lib C:/Pe rl/site/lib .) at display.pl line 4. BEGIN failed--compilation aborted at display.pl line 4.

安装了HTML :: TreeBuilder :: XPath模块(0.14)。从命令行运行命令

 perl -e HTML::TreeBuilder::XPath it doesn't give any error.

当我从命令行运行时perldoc -l HTML :: TreeBuilder :: XPath给出了以下错误:

No documentation found for "HTML::TreeBuilder::XPath".

我的perl版本是5.8.7

1 个答案:

答案 0 :(得分:1)

首次交叉检查确实已经安装了这个模块吗?我认为它没有安装,请从cpan安装。