while trying to install net-snmp-5.6, i get following error

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c netsnmp/client_intf.c -o build/temp.linux-i686-2.5/netsnmp/client_intf.o
netsnmp/client_intf.c:1:20: error: Python.h: No such file or directory
In file included from /usr/local/include/net-snmp/net-snmp-includes.h:69,
from netsnmp/client_intf.c:4:

my debian system has python2.5.2

where can I find Python.h header file??

while trying to install net-snmp-5.6, i get following error

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c netsnmp/client_intf.c -o build/temp.linux-i686-2.5/netsnmp/client_intf.o
netsnmp/client_intf.c:1:20: error: Python.h: No such file or directory
In file included from /usr/local/include/net-snmp/net-snmp-includes.h:69,
from netsnmp/client_intf.c:4:

my debian system has python2.5.2

where can I find Python.h header file??

On most linux distributions, you get the file Python.h by installing a package named python-devel.

Also note that debian has a package named net-snmp, so you shouldn't need to compile net-snmp. Simply install the package.

Edited 6 Years Ago by Gribouillis: n/a

On most linux distributions, you get the file Python.h by installing a package named python-devel.

python 2.5.2 has cum with my debian distribution. How to install python-devel u talked of? is it to be installed above python 2.5.2?

If you are new to linux, it is essential that you learn how to install packages. Read this first http://www.debian.org/doc/manuals/debian-tutorial/ch-dpkg.html or this http://www.debian.org/doc/FAQ/ch-pkgtools.en.html. In your case, you should probably type

apt-get install net-snmp

in a root terminal, or sudo apt-get install net-snmp in a user's terminal if you have the sudo command (it may prompt you for the root password). I don't use debian, so you must find documentation yourself (the correct command may be dpkg rather than apt-get). In the page above, read the section about configuring apt. It tells you how to configure your system to find packages on the internet. Your system may or may not already be configured for this (if not, apt-get or dpkg may not find packages like python-devel or net-snmp)

Edited 6 Years Ago by Gribouillis: n/a

This article has been dead for over six months. Start a new discussion instead.