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??

Recommended Answers

All 4 Replies

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.

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)

You should also have a look here, especially the section concerning dpkg and apt http://en.wikipedia.org/wiki/Debian (see the screenshots for apt). You should be able to start such a package manager from one of the menus on your desktop.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.