Difference between revisions of "FAQ:Compiling 03"

From Net-SNMP Wiki
Jump to: navigation, search
 
m
Line 1: Line 1:
= On RedHat 8.0 or up I get "/usr/bin/ld: cannot find -lelf". Why? =  
+
= 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
 
A typical installation of RedHat 8.0 and up doesn't always include

Revision as of 21:54, 25 October 2006

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
   
  1. How do I control the environment used to compile the software?
  2. How do I control the environment used to compile the software under Windows?
  3. Why does the compilation complain about missing libraries?
  4. How can I reduce the memory footprint?
  5. How can I reduce the installation footprint or speed up compilation?
  6. How can I compile the project for use on an embedded system?
  7. How can I compile the project to use static linking?
  8. Why does 'make test' skip various tests?
  9. Why does 'make test' complain about a pid file?