As the error message suggests, the python header files don't seem to be installed on your system. You didn't mention what distro you're on, but a lot of them ship python header files in a dedicated development package like python-dev. See if `locate "Python.h"` turns up anything.
Regards. On Mon, Aug 26, 2013 at 2:01 PM, Julien COUVRAND <julien.couvr...@st.com>wrote: > Hi, > > I meet some difficulties to compile pygobject 3.0.1 under LINUX. > My set-up is the following: > - python-2.7.1 > - glib-2.37.4 > - libiffi-3.0.11 > > The error detected is the following: > checking for headers required to compile python extensions... not found > configure: error: Python headers not found > > --- > configure:14936: > /local/frq08414/Projects/APG_BU/Accordo3/buildroot/output/host/usr/bin/arm-none-linux-gnueabi-cpp > > -I/local/frq08414/Projects/APG_BU/Accordo3/buildroot/output/host/usr/include/python2.7 > -I/local/frq08414/Projects/APG_BU/Accordo3/buildroot/output/host/usr/include/python2.7 > conftest.c > In file included from > /local/frq08414/Projects/APG_BU/Accordo3/buildroot/output/host/usr/include/python2.7/Python.h:58, > from conftest.c:26: > /local/frq08414/Projects/APG_BU/Accordo3/buildroot/output/host/usr/include/python2.7/pyport.h:849: > error: #error "LONG_BIT definition appears wrong for platform (bad > gcc/glibc config?)." > configure:14936: $? = 1 > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "pygobject" > | #define PACKAGE_TARNAME "pygobject" > | #define PACKAGE_VERSION "3.0.1" > | #define PACKAGE_STRING "pygobject 3.0.1" > | #define PACKAGE_BUGREPORT " > http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject" > | #define PACKAGE_URL "" > | #define PYGOBJECT_MAJOR_VERSION 3 > | #define PYGOBJECT_MINOR_VERSION 0 > | #define PYGOBJECT_MICRO_VERSION 1 > | #define PACKAGE "pygobject" > | #define VERSION "3.0.1" > | #define STDC_HEADERS 1 > | #define HAVE_SYS_TYPES_H 1 > | #define HAVE_SYS_STAT_H 1 > | #define HAVE_STDLIB_H 1 > | #define HAVE_STRING_H 1 > | #define HAVE_MEMORY_H 1 > | #define HAVE_STRINGS_H 1 > | #define HAVE_INTTYPES_H 1 > | #define HAVE_STDINT_H 1 > | #define HAVE_UNISTD_H 1 > | #define HAVE_DLFCN_H 1 > | #define LT_OBJDIR ".libs/" > | /* end confdefs.h. */ > | #include <Python.h> > configure:14941: result: not found > configure:14943: error: Python headers not found > --- > > Have you some clues to solve this issue? > > > Thanks in advance > > > Julien > > > _______________________________________________ > python-hackers-list mailing list > python-hackers-list@gnome.org > https://mail.gnome.org/mailman/listinfo/python-hackers-list > >
_______________________________________________ python-hackers-list mailing list python-hackers-list@gnome.org https://mail.gnome.org/mailman/listinfo/python-hackers-list