By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,221 Members | 1,663 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,221 IT Pros & Developers. It's quick & easy.

failed to install PIL in fedora core 6

P: n/a
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?

Feb 24 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Frank Potter wrote:
I use "python setup.py install" to install PIL in fedora with python
2.4, But I got these errors:
<-cut some errors->
error: Python.h: No such file or directory In file included from
libImaging/Imaging.h:14, from _imaging.c:78:
So you don't have the python-dev package.
What should I do if I want to successfully have pil installed?
Try to search into the Fedora repos for the PIL (or python-imaging). If
not, install the python-dev and compile!

Michele
Feb 24 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.