Net-SNMP Perl模块安装报错

Q:

使用的是带有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文件),但无济于事情。所有的perls都在typemap目录中安装了ExtUtils文件。

 

A1:

安装Perl Net :: SNMP

perl -MCPAN -e 'install Net::SNMP'

A2:

ubuntu 14.04上有同样问题,需要 sudo apt-get install libsnmp-perl

A3:

尝试使用CPAN安装它:

perl -MCPAN -e 'install HTML::Template'

如果perl Makefile.PL && make不起作用,那么它将不起作用CPAN.pm。

 

你可能感兴趣的:(Net-SNMP Perl模块安装报错)