Can't locate SNMP.pm in @INC,请教各位大侠
Can't locate SNMP.pm in @INC (@INC contains: dev/ /home/mc041426/workbench/lib/perl5/site_perl /usr/lib/perl5/5.10.0/i586-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at /home/mc041426/workbench/lib/perl5/site_perl/COPLA/SNMP.pm line 26.
BEGIN failed--compilation aborted at /home/mc041426/workbench/lib/perl5/site_perl/COPLA/SNMP.pm line 30.
Compilation failed in require at /home/mc041426/workbench/lib/perl5/site_perl/COPLA/Script/SNMPTable.pm line 8.
BEGIN failed--compilation aborted at /home/mc041426/workbench/lib/perl5/site_perl/COPLA/Script/SNMPTable.pm line 8.
Compilation failed in require at /home/mc041426/workbench/bin/remoteConf.pl line 5.
BEGIN failed--compilation aborted at /home/mc041426/workbench/bin/remoteConf.pl line 5.
====> 这个问题是什么原因呢?
[解决办法]
安装模块就行了
手动安装:
1.下载http://search.cpan.org/CPAN/authors/id/H/HA/HARDAKER/SNMP-5.0401.tar.gz
2.tar -zxvf SNMP-5.0401.tar.gz
3.perl Makefile.PL(如果提示你需要安装其它模块则先安装其它依赖模块,安装过程和这一样
4.make
5.sudo make install(安装完毕)
用cpan安装
sudo cpan -i mod (mod为模块名称)
[解决办法]
你那是Net::SNMP,不是SNMP吧。