failed to install PIL in fedora core 6



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?

.



Relevant Pages

  • Re: Whats so funny? WAS Re: rotor replacement
    ... That I have to download and perhaps install them to use ... > * I have to download and build the MySQLdb package to talk to MySQL ... > servers from Python code ... I can write something using a core module instead of an external ...
    (comp.lang.python)
  • RE: Python 2.4 killing commercial Windows Python development ?
    ... > install fully useable Python on their Windows machines. ... > Quicksomething for Windows, or RealPlayer, ... The Windows application that I develop and distribute relies on Python ...
    (comp.lang.python)
  • Re: bytecode non-backcompatibility
    ... Unstable bytecodes makes updating to a newer version of Python very ... >>>tedious and risk breaking old scripts, ... > setup.py install" to install the library into site-package. ... each port has a list of all the other ports it depends ...
    (comp.lang.python)
  • HOWTO: Python 2.3 on Fedora Core 1 Linux
    ... About the 'new' Python ... Appendix A: Python Installation with Tkinter - edit: Modules/Setup.dist ... Be aware that it is always risky to install new software; ... # uncomment and/or edit those parts as indicated. ...
    (comp.lang.python)
  • Re: Python 2.4 killing commercial Windows Python development ?
    ... install fully useable Python on their Windows machines. ... different to me than having to install Shockwave, ... Quicksomething for Windows, or RealPlayer, ... The Windows application that I develop and distribute relies on Python ...
    (comp.lang.python)