2

我已经安装了 cpan 模块cpan install semantics3cpanm install semantics3但它仍然抛出这样的错误

Can't locate Net/Semantics3.pm in @INC (you may need to install the Net::Semantics3 module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at extraction.pl line 1.

BEGIN failed--compilation aborted at extraction.pl line 1.

4

2 回答 2

1

您需要为安装指定整个模块名称,而不仅仅是最后一部分。因此,您的命令应该是

cpan Net::Semantics3

而不仅仅是install semantics3.

于 2014-10-11T07:23:53.410 回答
0

从它的GitHub repo中,你可以尝试:

perl -MCPAN -e "install Net::Semantics3"
于 2014-10-11T07:15:13.913 回答