Net-SNMP perl 模块不会生成

Cor*_*ter 3 linux perl net-snmp

首先,我使用的是带有 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.
Run Code Online (Sandbox Code Playgroud)

所以我去 /net-snmp/perl/SNMP 并运行

 perl Makefile.PL
 make
Run Code Online (Sandbox Code Playgroud)

现在它给了我这个错误:

make: *** No rule to make target `/usr/lib/perl/5.14.2/ExtUtils/typemap', needed by `SNMP.c'.  Stop.
Run Code Online (Sandbox Code Playgroud)

好的,所以我知道必须安装 ExtUtils 模块(它是),但我在该文件夹中的所有内容都是 .pm 文件。当我使用 perl 运行它们时,什么也没有发生。我还尝试在线查找文件(在我创建一个类型映射文件后,它还会要求提供一个 xsubpp 文件),但无济于事。

如何安装这些模块以便正确的文件将在那里?

kev*_*ket 5

在 Ubuntu 14.04 上,我需要 sudo apt-get install libsnmp-perl