473,396 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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?

Feb 24 '07 #1
1 4975
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Logan | last post by:
I have two different Python versions on my Linux system (2.2 and 2.3). I cannot remove version 2.2 because many configuration files of the system depend on this version of Python (and its...
2
by: Bill | last post by:
I have less than a week experience on linux, so I am a new newbie. Python 2.3 came preinstalled. I installed version 2.4. All seemed to go well except it installed to usr/local? 1. Was it...
1
by: richardun | last post by:
My goal is to install python2.4 using yum (wouldn't you know it, it's a dependency for something else). >From this page (), I followed the following instructions: 1. ...creat...
5
by: linuxfreak | last post by:
Hi guys, Has anyone installed wxPython on Fedora Core 4. Apparently it need the libstdc++.so.5 file while Fedora installs the newer libstdc++.so.6 file. I tried installing the libstdc rpm from...
7
by: taoyangsjtu | last post by:
Dear friends, Now, I have just installed the system with full fedora core 4. I had to use lapack, but I don't know how to install and use it. Can anybody tell me the installation process in...
0
by: maluyao | last post by:
Install IBM DB2 on Fedora Core 5 (Bordeaux) author: maluyao RHCE. maluyao@NOSPAMgmail.com(remove NOSPAM) http://www.teenblog.org/tiantian/ (Chinese Version) Pre-installation notes:...
4
by: Amber | last post by:
The installer tells it faild to config db2inst1, the db2setup.err is as following: /usr/share/themes/Clearlooks/gtk-2.0/gtkrc:60: Engine "clearlooks" is unsupporte d, ignoring Jun 15, 2007...
1
by: Bob | last post by:
Im setting up a fedora core 8 web server. Im currently running everything on another fedora core 6 server (working fine). Ive installed php 5.2.5 and apache 2.0.63 Im getting the following: ...
4
by: mechphisto | last post by:
I'm working on a friend's box, Fedora Core 6. It has PHP 5.1.6. I need to install mcrypt into it, and the only way I can find to do it is from source then recompile PHP. So I did all that, and got...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.