All,

 

I looked around at the FAQ and various documentation and couldn’t find anything (I’m not a guru by any stretch, though, so I may have overlooked something). I’m trying to install Net-SNMP 5.4.1 on my Linux (RedHat 9 2.4.20-8). When I do a “make test” or “make install,” it fails. Below is the output from the make test. Any suggestions?

 

I can send any other output you need.

 

 

 

Thanks!

Tyson


[root@Leviathan net-snmp-5.4.1]# make test

making all in /big_un/Downloads_Linux/net-snmp-5.4.1/snmplib

make[1]: Entering directory `/big_un/Downloads_Linux/net-snmp-5.4.1/snmplib'

make[1]: Leaving directory `/big_un/Downloads_Linux/net-snmp-5.4.1/snmplib'

making all in /big_un/Downloads_Linux/net-snmp-5.4.1/agent

make[1]: Entering directory `/big_un/Downloads_Linux/net-snmp-5.4.1/agent'

making all in /big_un/Downloads_Linux/net-snmp-5.4.1/agent/helpers

make[2]: Entering directory `/big_un/Downloads_Linux/net-snmp-5.4.1/agent/helpers'

make[2]: Leaving directory `/big_un/Downloads_Linux/net-snmp-5.4.1/agent/helpers'

making all in /big_un/Downloads_Linux/net-snmp-5.4.1/agent/mibgroup

make[2]: Entering directory `/big_un/Downloads_Linux/net-snmp-5.4.1/agent/mibgroup'

make[2]: Leaving directory `/big_un/Downloads_Linux/net-snmp-5.4.1/agent/mibgroup'

/bin/sh ../libtool  --mode=link gcc -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm  -o snmpd snmpd.lo  -L../snmplib/.libs -L../snmplib -L./.libs -L./helpers/.libs -L./helpers  libnetsnmpagent.la helpers/libnetsnmphelpers.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la -lz  -rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE  -L/usr/local/lib /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -lperl -lnsl -ldl -lm -lpthread -lc -lcrypt -lutil

gcc -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -o .libs/snmpd .libs/snmpd.o -rdynamic -Wl,-rpath -Wl,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE  -L/big_un/Downloads_Linux/net-snmp-5.4.1/agent/.libs -L/big_un/Downloads_Linux/net-snmp-5.4.1/agent/helpers/.libs -L/big_un/Downloads_Linux/net-snmp-5.4.1/snmplib/.libs -L/big_un/Downloads_Linux/net-snmp-5.4.1/snmplib -L/big_un/Downloads_Linux/net-snmp-5.4.1/agent/helpers ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ./.libs/libnetsnmpmibs.so /big_un/Downloads_Linux/net-snmp-5.4.1/agent/helpers/.libs/libnetsnmphelpers.so /big_un/Downloads_Linux/net-snmp-5.4.1/agent/.libs/libnetsnmpagent.so /big_un/Downloads_Linux/net-snmp-5.4.1/snmplib/.libs/libnetsnmp.so /usr/lib/librpm.so /usr/lib/librpmdb.so -L/usr/src/build/229501-i386/BUILD/rpm-4.2/zlib -L/usr/local/lib -lelf /usr/lib/librpmio.so -lrt -lbz2 /usr/lib/libpopt.so ../snmplib/.libs/libnetsnmp.so -lcrypto -lz /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -lperl -lnsl -ldl -lm -lpthread -lc -lcrypt -lutil   -Wl,--rpath -Wl,/usr/local/lib

/usr/bin/ld: cannot find -lelf

collect2: ld returned 1 exit status

make[1]: *** [snmpd] Error 1

make[1]: Leaving directory `/big_un/Downloads_Linux/net-snmp-5.4.1/agent'

make: *** [subdirs] Error 1

[root@Leviathan net-snmp-5.4.1]#