[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Getting Error while compiling net-snmp-

Posted on 2008-11-17
Medium Priority
Last Modified: 2013-12-21
s/net-snmp- -L/home/downloads/net-snmp- -L/home/downloads/net-snmp- ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ./.libs/libnetsnmpmibs.so /home/downloads/net-snmp- /home/downloads/net-snmp- /home/downloads/net-snmp- /usr/lib/librpm.so -L/usr/src/build/757196-i386/install/usr/lib -L/usr/lib /usr/lib/librpmdb.so -L/usr/local/lib -lelf -lselinux /usr/lib/librpmio.so /usr/lib/libbeecrypt.so -lrt -lbz2 /usr/lib/libpopt.so ../snmplib/.libs/libnetsnmp.so -lcrypto -lz /usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc   -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 `/home/downloads/net-snmp-'
make: *** [subdirs] Error 1

I am trying to install netsnmp and integrate it with nagios 3.0 while making the netsnmp plugin im getting the below given error, will be thankful if any body can help out me in it this :)
Question by:Nyjus
1 Comment

Accepted Solution

gt2847c earned 120 total points
ID: 22990486
It appears your linker can't find libelf.so (-lelf looking for libelf).  From what I can find on the RPM finder, its part of the systemtap-debuginfo RPM package.  If it isn't included in the distribution disks you have, you can find it on rpm.pbone.net.  You can do a search for systemtap-debuginfo and find it.  As an alternative, have you considered pulling down an already packaged version of net-snmp?  Many of the distributions include it in the package files but may not install it by default.  There is a version of the net-snmp package on rpm.pbone.net.  A link to a non-denominational version is http://rpm.pbone.net/index.php3/stat/4/idpl/10019917/com/net-snmp-
Given this specifies "other" as the Linux edition, YMMV.  There are a number of net-snmp rpm packages that are built specifically for RH, but I was unable to locate one on

Hope that helps

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question