I use "python setup.py install" to install PIL in fedora with python 2.4, But I got these errors: running build_ext building '_imaging' extension creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/libImaging 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 -fPIC -DHAVE_LIBZ -I/usr/include/freetype2 - IlibImaging -I/usr/include -I/usr/local/include -I/usr/include/ python2.4 -c _imaging.c -o build/temp.linux-i686-2.4/_imaging.o _imaging.c:76:20: error: Python.h: No such file or directory In file included from libImaging/Imaging.h:14, from _imaging.c:78: 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. libImaging/ImPlatform.h:55:2: error: #error Cannot find required 32- bit integer type In file included from _imaging.c:78: libImaging/Imaging.h:90: error: expected specifier-qualifier-list before 'INT32' libImaging/Imaging.h:265: error: expected specifier-qualifier-list before 'INT32' libImaging/Imaging.h:393: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ImagingCRC32' _imaging.c:123: error: expected specifier-qualifier-list before 'PyObject_HEAD' ......................................................... _imaging.c: At top level: _imaging.c:316: error: expected ')' before '*' token _imaging.c:413: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token _imaging.c:468: error: expected ')' before '*' token _imaging.c:536: error: expected '=', ',', ';', 'asm' or '__attribute__' ............................. before '*' token _imaging.c:773: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'functions' _imaging.c:3138: warning: return type defaults to 'int' _imaging.c: In function 'DL_EXPORT': _imaging.c:3138: error: expected declaration specifiers before 'init_imaging' _imaging.c:3149: error: expected '{' at end of input error: command 'gcc' failed with exit status 1
What should I do if I want to successfully have pil installed? -- http://mail.python.org/mailman/listinfo/python-list