错误日志的具体版本如下,意思是在运行N700Smon这个可执行文件的时候,电脑中perl库里没有AnyEvent.pm这个包,解决方案就是去网上下载并安装这个文件:
xingjunaodeMini:n700Smon admin$ ./N700Smon
Can't locate AnyEvent.pm in @INC (you may need to install the AnyEvent module) (@INC contains: . /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.4 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at ./N700Smon line 8.
BEGIN failed--compilation aborted at ./N700Smon line 8.
xingjunaodeMini:n700Smon admin$
1. 先去meta:cpan这个网站:https://metacpan.org/pod,根据日志去搜索需要的文件
2. 点击左下角的“Download”下载:
3. 解压完可看到具体的内容如下图,重点要关注的是有没有“Makefile.PL”文件,如果有的话,依次执行如下命令:
perl Makefile.PL
ma