Problems may occur if you directly use the source code or install easy_install:
[Root @ localhost imaging-1.1.7] # easy_install PIL
Searching for Pil
Reading http://pypi.python.org/simple/pil/
Reading http://www.pythonware.com/products/pil
Reading http://effbot.org/zone/pil-changes-115.htm
Reading http://effbot.org/downloads/#Imaging
Best Match: Pil 1.1.7
Downloading http://effbot.org/media/downloads/PIL-1.1.7.tar.gz
Processing PIL-1.1.7.tar.gz
Running PIL-1.1.7/setup. py-Q bdist_egg -- dist-DIR/tmp/easy_install-QsybyL/PIL-1.1.7/egg-dist-tmp-47MNVY
Warning: 'Not a valid package name; please use only.-separated package names in setup. py
_ Imaging. C: 75: 20: Error: Python. h: no such file or directory
In file encoded ded from libimaging/imaging. h: 14,
From _ imaging. C: 77:
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 encoded ded from _ imaging. C: 77:
Libimaging/imaging. h: 90: Error: Expected specifier-qualifier-list before 'int32'
Libimaging/imaging. h: 264: Error: Expected specifier-qualifier-list before 'int32'
Libimaging/imaging. h: 395: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' imagingcrc32'
_ Imaging. C: 124: Error: Expected specifier-qualifier-list before 'pyobject _ head'
_ Imaging. C: 129: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' pytypeobject'
_ Imaging. C: 143: Error: Expected specifier-qualifier-list before 'pyobject _ head'
_ Imaging. C: 151: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' pytypeobject'
_ Imaging. C: 154: Error: Expected specifier-qualifier-list before 'pyobject _ head'
_ Imaging. C: 160: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' pytypeobject'
_ Imaging. C: 165: Error: Expected specifier-qualifier-list before 'pyobject _ head'
_ Imaging. C: 170: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' pytypeobject'
_ Imaging. C: 172: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' * 'token
_ Imaging. C: In function '_ dealloc ':
_ Imaging. C: 204: Error: 'imagingobject' has no member named' access'
...
_ Imaging. C: 3152: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' Functions'
_ Imaging. C: 3250: Warning: return type defaults to 'int'
_ Imaging. C: In function 'dl _ export ':
_ Imaging. C: 3250: Error: expected declaration specifiers before 'init _ imaging'
_ Imaging. C: 3281: Error: Expected '{'at end of input
Error: Setup script exited with error: Command 'gcc 'failed with exit status 1
Only installed through yum
Yum install Python-imaging