thanks much, Sir, I have followed your instruction, but the problem is still alive.

/bin/sh ../libtool --mode=link gcc -I/usr/include/rpm -g -O2 -Dlinux -I/usr/include/rpm -Wall -Winline -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts -o snmpd snmpd.lo libnetsnmpagent.la libnetsnmpmibs.la helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lrpm -lrpmio -lpopt -lz -lcrypto -lm
gcc -I/usr/include/rpm -g -O2 -Dlinux -I/usr/include/rpm -Wall -Winline -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts -o snmpd snmpd.o ./.libs/libnetsnmpagent.a ./.libs/libnetsnmpmibs.a helpers/.libs/libnetsnmphelpers.a ../snmplib/.libs/libnetsnmp.a -ldl /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 -lpthread -lbz2 /usr/lib/libpopt.so -lz -lcrypto -lm
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/net-snmp-5.1.1/agent'
make: *** [subdirs] Error 1






From: Dave Shield <[EMAIL PROTECTED]>
To: 沈 狼 <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: problem in Installing net-snmp-5.1.1 under RH9 Date: Fri, 18 Jun 2004 09:43:49 +0100


> in RH9, under the net-snmp-5.1.1 directory....
>
>   ... while execute make command, error occured. the
> error info is:
>

> /usr/bin/ld: cannot find -lelf
> collect2: ld returned 1 exit status

Try installing the RPM 'elfutils-libelf-0.76-3.i386.rpm'
(on the first RH9 CD).   That includes the missing library.

Dave


_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn




-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to