首先,我在Angstrom发行版中使用Beaglebone Black。
我的net-snmp的mib2c程序不能工作,并给出以下错误:
ERROR: You don't have the SNMP perl module installed. Please obtain
this by getting the latest source release of the net-snmp toolkit from
http://www.net-snmp.org/download/ . Once you download the source and
unpack it, the perl module is contained in the perl/SNMP directory.
See the README file there for instructions.所以我转到/net-snmp/perl/SNMP并运行
perl Makefile.PL
make现在它给出了这个错误:
make: *** No rule to make target `/usr/lib/perl/5.14.2/ExtUtils/typemap', needed by `SNMP.c'. Stop.好了,我知道必须安装ExtUtils模块(确实如此),但我在该文件夹中的所有内容都是.pm文件。当我使用perl运行它们时,什么也没有发生。我也试着在网上查找这些文件(在我创建了一个类型映射文件之后,它也要求一个xsubpp文件),但是没有用。
我如何安装这些模块,以使正确的文件将在那里?
发布于 2018-05-29 03:52:09
在Ubuntu14.04上,我需要sudo apt-get install libsnmp-perl
发布于 2018-03-18 14:58:08
安装Perl Net::SNMP
perl -MCPAN -e 'install Net::SNMP' 发布于 2013-11-14 18:29:38
您可以尝试使用CPAN安装它:
perl -MCPAN -e 'install HTML::Template' https://stackoverflow.com/questions/19973998
复制相似问题