1. 下源码
http://www.net-snmp.org/download.html
这里版本是 NET-SNMP version 5.7.3
2. 解压,编译
a> ./configure --with-default-snmp-version="2" --with-sys-contact="who@where" --with-sys-location="location" --with-logfile="/tmp/snmpd.log" --with-persistent-directory="/usr/local/sbin" --enable-static=yes --disable-shared --disable-embedded-perl --without-perl-modules --disable-ipv6 --disable-ucd-snmp-compatibility --enable-as-needed --with-mib-modules="agentx" --disable-mib-loading --disable-des --disable-privacy --disable-md5 --disable-deprecated --with-openssl=internal --without-kmem-usage --without-rpm --without-dmalloc --build=i686-linux --host=arm-linux --target=arm-linux-gnueabihf --with-cc=arm-linux-gnueabihf-gcc --with-linkcc=arm-linux-gnue