我已经cpan install semantics3
和cpanm install semantics3
安装了cpan模块,但仍然会抛出这样的错误
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.
答案 0 :(得分:1)
您需要指定安装的整个模块名称,而不仅仅是最后一部分。因此,您的命令应该是
cpan Net::Semantics3
而非install semantics3
。
答案 1 :(得分:0)
从GitHub repo开始,您可以尝试:
perl -MCPAN -e "install Net::Semantics3"