[Image-SIG] installing PIL error with gcc

Thomas thomas at eforms.co.nz
Fri Jul 14 07:31:07 CEST 2006

Hi All,

I Am trying to install PIL on my mac 10.3 . I have trouble building .
it complained about missing gcc so I downloaded
xcode_legacy_7k594_0611959.dmg and installed the gcc3.1.pkg.
created a sym link for gcc3 to gcc

now I am getting the following error

Fred-Daggs-Computer:~/Desktop/Imaging-1.1.5 freddagg$ python setup.py  
running install
running build
running build_py
running build_ext
building '_imaging' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall  
-Wstrict-prototypes -DHAVE_LIBZ -DWORDS_BIGENDIAN -IlibImaging  
-I/sw/include -I/usr/local/include -I/usr/include  
python2.3 -c libImaging/LzwDecode.c -o  
In file included from libImaging/Imaging.h:14,
                  from libImaging/LzwDecode.c:31:
libImaging/ImPlatform.h:10: Python.h: No such file or directory
libImaging/ImPlatform.h:14: #error Sorry, this library requires support  
for ANSI prototypes.
libImaging/ImPlatform.h:17: #error Sorry, this library requires ANSI  
header files.
libImaging/ImPlatform.h:55: #error Cannot find required 32-bit integer  
libImaging/LzwDecode.c:33: stdio.h: No such file or directory
libImaging/LzwDecode.c:34: stdlib.h: No such file or directory
error: command 'gcc' failed with exit status 1

I also tried gcc2 on my machine to get similar results

Thanks Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1603 bytes
Desc: not available
Url : http://mail.python.org/pipermail/image-sig/attachments/20060714/ecefec09/attachment.bin 

More information about the Image-SIG mailing list