If /usr/include/python2.4 is in your include path, yet Python.h cannot be found, then I'd be moved to believe that you are missing the python-devel package. Have you checked for that?
Kind regards, Nils ________________________________________ From: W. Daniel Simmons [wdsimm...@hexlab.com] Sent: Tuesday, January 19, 2010 1:51 AM To: image-sig@python.org Subject: [Image-SIG] Can't perform "python setup.py build" on RedHat CentOS release 5.4 Linux Gentlemen: We use Python and a package called ReportLab to produce pdf files. The package requires the use of the PIL package. I've installed these packages on many systems, and never had a problem until we moved to a new web hosting service for ourselves. On the server with the OS noted in the subject line I get the following errors (full error text in attachment): sh-3.2# python setup.py build running build running build_py running build_ext building '_imaging' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -DHAVE_LIBZ -IlibImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.4 -c _imaging.c -o build/temp.linux-x86_64-2.4/_imaging.o _imaging.c:74:20: error: Python.h: No such file or directory In file included from libImaging/Imaging.h:14, from _imaging.c:76: libImaging/ImPlatform.h:10:20: error: Python.h: No such file or directory libImaging/ImPlatform.h:14:2: error: #error Sorry, this library requires support for ANSI prototypes. libImaging/ImPlatform.h:17:2: error: #error Sorry, this library requires ANSI header files. ...and so on If any can tell me what I'm missing on our new server I'd be much obliged. Thanks, Dan _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig