sethhall / chromium-compact-language-detector

Automatically exported from code.google.com/p/chromium-compact-language-detector
0 stars 0 forks source link

Python.h: No such file or directory error on centos 5.7 setup #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Python.h: No such file or directory

python26 -u setup.py buildrunning build
running build_ext
building 'cld' extension
creating build
creating build/temp.linux-i686-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic 
-fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DCLD_WINDOWS 
-I. -I/usr/include/python2.6 -c pycldmodule.cc -o 
build/temp.linux-i686-2.6/pycldmodule.o
pycldmodule.cc:5:20: error: Python.h: No such file or directory
pycldmodule.cc:12: error: expected initializer before ‘*’ token
pycldmodule.cc:26: error: expected initializer before ‘*’ token
pycldmodule.cc:14: warning: ‘bool EncodingFromName(const char*, Encoding*)’ 
defined but not used
error: command 'gcc' failed with exit status 1

Original issue reported on code.google.com by gap...@gmail.com on 10 Dec 2011 at 9:00

GoogleCodeExporter commented 9 years ago
This is a problem with your environment: you need to install the "python devel" 
package, which will install Python's header files.

Original comment by luc...@mikemccandless.com on 11 Dec 2011 at 11:37

GoogleCodeExporter commented 9 years ago

Original comment by luc...@mikemccandless.com on 3 Jan 2012 at 1:36