1.版本说明:
平台:x86
OS:Red Hat Enterprise Linux Server release 7.6 (Maipo)
gcc:4.8.5 (系统自带)
net-snmp:5.7.3
2.准备工作
2.1 确认gcc环境
通过net-snmp编译包安装,需要系统提前安装好gcc环境。
# find / -name gcc
/usr/bin/gcc
/usr/lib/gcc
/usr/libexec/gcc
# /usr/bin/gcc -v
使用内建 specs。
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
目标:x86_64-redhat-linux
配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-