Can not find "/usr/include/net-snmp/net-snmp-config.h". The net-snmp development files seems to be missing.

Matt Kappel <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAAKgmzcqb_1SSLbjA3AaFHCEjUe2SRXXYx6-PPV1yEAUXq=wfg@mail.gmail.com>
Hello,

I'm very much an SNMP noob, but I would like to implement a subagent for a
custom device.  I'm running into an issue while trying to do the agentx
subagent tutorial[1]  where I get the following error:

> net-snmp-config --cflags
Can not find "/usr/include/net-snmp/net-snmp-config.h". The net-snmp
development files seems to be missing. Exiting
-DNETSNMP_ENABLE_IPV6 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g
-fno-strict-aliasing -fstack-protector-all -Ulinux -Dlinux=linux
-I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV
-DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64
-I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE -I. -I/usr/include

I'm running on SUSE Linux Enterprise Server 11 SP 3, and I'm using the
following rpms:

snmp-mibs-5.4.2.1-8.12.20.1
perl-SNMP-5.4.2.1-8.12.20.1
libsnmp15-5.4.2.1-8.12.20.1
net-snmp-5.4.2.1-8.12.20.1

I would like to be able to use the provided rpm for the server if possible.
 Is there a way to avoid having to install from source perhaps by
'reconstructing' the necessary headers?

Thanks,
Matt

[1]
http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent#Instrumenting_your_own_code_with_agentx_subagent_support

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.