FAQ:Compiling 03
From Net-SNMP Wiki
On RedHat 8.0 or up I get "/usr/bin/ld: cannot find -lelf". Why?
A typical installation of RedHat 8.0 and up doesn't always include
the full set of 'libelf'
library links. In order to build Net-SNMP
you may need to install the 'elfutils-devel'
RPM.
A alternative quick fix is to add the missing symbolic link, using:
ln -s libelf.so.1 /usr/lib/libelf.so
(or whatever the correct library is on your system).
This is typically only needed when you've configured the agent to
include the Host Resources MIB support ('--with-mib-modules=host'
).
FAQ:Compiling
- How do I control the environment used to compile the software?
- How do I control the environment used to compile the software under Windows?
- Why does the compilation complain about missing libraries?
- How can I reduce the memory footprint?
- How can I reduce the installation footprint or speed up compilation?
- How can I compile the project for use on an embedded system?
- How can I compile the project to use static linking?
- Why does 'make test' skip various tests?
- Why does 'make test' complain about a pid file?