Hello,
I?m trying to install PIL (Python Image Library) in a CentOS-4.4,
but I?m getting the follow error after unpack the tarball:
-------------------------------
# python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.3
copying PIL/ExifTags.py -> build/lib.linux-i686-2.3
copying PIL/ImageTransform.py -> build/lib.linux-i686-2.3
copying PIL/GbrImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImageOps.py -> build/lib.linux-i686-2.3
copying PIL/GimpGradientFile.py -> build/lib.linux-i686-2.3
copying PIL/PixarImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/IcnsImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/IptcImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImageGrab.py -> build/lib.linux-i686-2.3
copying PIL/GifImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/BmpImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/FontFile.py -> build/lib.linux-i686-2.3
copying PIL/ImageFilter.py -> build/lib.linux-i686-2.3
copying PIL/WmfImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/OleFileIO.py -> build/lib.linux-i686-2.3
copying PIL/TiffTags.py -> build/lib.linux-i686-2.3
copying PIL/FliImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/PsdImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/PaletteFile.py -> build/lib.linux-i686-2.3
copying PIL/ImageColor.py -> build/lib.linux-i686-2.3
copying PIL/BdfFontFile.py -> build/lib.linux-i686-2.3
copying PIL/CurImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/PalmImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImagePalette.py -> build/lib.linux-i686-2.3
copying PIL/MpegImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/SunImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/FitsStubImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImtImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImageWin.py -> build/lib.linux-i686-2.3
copying PIL/PpmImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/PngImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/MicImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/BufrStubImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/DcxImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImageEnhance.py -> build/lib.linux-i686-2.3
copying PIL/ImageGL.py -> build/lib.linux-i686-2.3
copying PIL/TarIO.py -> build/lib.linux-i686-2.3
copying PIL/TiffImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/JpegImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/MspImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/XpmImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/XVThumbImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImagePath.py -> build/lib.linux-i686-2.3
copying PIL/Image.py -> build/lib.linux-i686-2.3
copying PIL/ImageFile.py -> build/lib.linux-i686-2.3
copying PIL/SgiImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/PdfImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/McIdasImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/GribStubImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/XbmImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/PcxImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImageDraw.py -> build/lib.linux-i686-2.3
copying PIL/SpiderImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImageFont.py -> build/lib.linux-i686-2.3
copying PIL/ArgImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/WalImageFile.py -> build/lib.linux-i686-2.3
copying PIL/PcfFontFile.py -> build/lib.linux-i686-2.3
copying PIL/IcoImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/GimpPaletteFile.py -> build/lib.linux-i686-2.3
copying PIL/FpxImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImageSequence.py -> build/lib.linux-i686-2.3
copying PIL/EpsImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/ImageTk.py -> build/lib.linux-i686-2.3
copying PIL/PcdImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/__init__.py -> build/lib.linux-i686-2.3
copying PIL/ImageFileIO.py -> build/lib.linux-i686-2.3
copying PIL/ImageChops.py -> build/lib.linux-i686-2.3
copying PIL/GdImageFile.py -> build/lib.linux-i686-2.3
copying PIL/ImageStat.py -> build/lib.linux-i686-2.3
copying PIL/TgaImagePlugin.py -> build/lib.linux-i686-2.3
copying PIL/PSDraw.py -> build/lib.linux-i686-2.3
copying PIL/ContainerIO.py -> build/lib.linux-i686-2.3
running build_ext
building '_imaging' extension
creating build/temp.linux-i686-2.3
creating build/temp.linux-i686-2.3/libImaging
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386
-mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -DHAVE_LIBZ -IlibImaging
-I/usr/include -I/usr/local/include -I/usr/include/python2.3 -c
libImaging/Blend.c -o build/temp.linux-i686-2.3/libImaging/Blend.o
In file included from libImaging/Imaging.h:14,
from libImaging/Blend.c:19:
libImaging/ImPlatform.h:10:20: Python.h: Arquivo ou diret?rio n?o encontrado
libImaging/ImPlatform.h:14:2: #error Sorry, this library requires
support for ANSI prototypes.
libImaging/ImPlatform.h:17:2: #error Sorry, this library requires ANSI
header files.
libImaging/ImPlatform.h:55:2: #error Cannot find required 32-bit integer
type
In file included from libImaging/Blend.c:19:
libImaging/Imaging.h:90: error: syntax error before "INT32"
libImaging/Imaging.h:90: warning: no semicolon at end of struct or union
libImaging/Imaging.h:102: error: syntax error before '}' token
libImaging/Imaging.h:263: error: syntax error before "INT32"
libImaging/Imaging.h:263: warning: no semicolon at end of struct or union
libImaging/Imaging.h:263: warning: data definition has no type or
storage class
libImaging/Imaging.h:263: warning: data definition has no type or
storage class
libImaging/Imaging.h:264: error: syntax error before '*' token
libImaging/Imaging.h:265: warning: data definition has no type or
storage class
libImaging/Imaging.h:391: error: syntax error before "ImagingCRC32"
libImaging/Imaging.h:391: error: syntax error before "crc"
libImaging/Imaging.h:391: warning: data definition has no type or
storage class
libImaging/Blend.c: In function `ImagingBlend':
libImaging/Blend.c:29: error: dereferencing pointer to incomplete type
libImaging/Blend.c:31: error: dereferencing pointer to incomplete type
libImaging/Blend.c:31: error: dereferencing pointer to incomplete type
libImaging/Blend.c:32: error: dereferencing pointer to incomplete type
libImaging/Blend.c:32: error: dereferencing pointer to incomplete type
libImaging/Blend.c:33: error: dereferencing pointer to incomplete type
libImaging/Blend.c:33: error: dereferencing pointer to incomplete type
libImaging/Blend.c:34: error: dereferencing pointer to incomplete type
libImaging/Blend.c:34: error: dereferencing pointer to incomplete type
libImaging/Blend.c:43: error: dereferencing pointer to incomplete type
libImaging/Blend.c:43: error: dereferencing pointer to incomplete type
libImaging/Blend.c:43: error: dereferencing pointer to incomplete type
libImaging/Blend.c:45: error: `NULL' undeclared (first use in this function)
libImaging/Blend.c:45: error: (Each undeclared identifier is reported
only once
libImaging/Blend.c:45: error: for each function it appears in.)
libImaging/Blend.c:51: error: dereferencing pointer to incomplete type
libImaging/Blend.c:52: error: dereferencing pointer to incomplete type
libImaging/Blend.c:53: error: dereferencing pointer to incomplete type
libImaging/Blend.c:54: error: dereferencing pointer to incomplete type
libImaging/Blend.c:55: error: dereferencing pointer to incomplete type
libImaging/Blend.c:61: error: dereferencing pointer to incomplete type
libImaging/Blend.c:62: error: dereferencing pointer to incomplete type
libImaging/Blend.c:63: error: dereferencing pointer to incomplete type
libImaging/Blend.c:64: error: dereferencing pointer to incomplete type
libImaging/Blend.c:65: error: dereferencing pointer to incomplete type
error: command 'gcc' failed with exit status 1
# rpm -qa | grep gcc
libgcc-3.4.6-3
gcc-3.4.6-3
-------------------------------
Any help would be appreciated
Thanks,
Ronan
On Mon, Nov 20, 2006 at 07:26:53PM -0200, Ronan Lucio enlightened us:> I?m trying to install PIL (Python Image Library) in a CentOS-4.4, > but I?m getting the follow error after unpack the tarball: > > ------------------------------- > # python setup.py install > running install > running build > running build_py > creating build > creating build/lib.linux-i686-2.3 > copying PIL/ExifTags.py -> build/lib.linux-i686-2.3 > copying PIL/ImageTransform.py -> build/lib.linux-i686-2.3 > copying PIL/GbrImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImageOps.py -> build/lib.linux-i686-2.3 > copying PIL/GimpGradientFile.py -> build/lib.linux-i686-2.3 > copying PIL/PixarImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/IcnsImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/IptcImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImageGrab.py -> build/lib.linux-i686-2.3 > copying PIL/GifImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/BmpImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/FontFile.py -> build/lib.linux-i686-2.3 > copying PIL/ImageFilter.py -> build/lib.linux-i686-2.3 > copying PIL/WmfImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/OleFileIO.py -> build/lib.linux-i686-2.3 > copying PIL/TiffTags.py -> build/lib.linux-i686-2.3 > copying PIL/FliImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/PsdImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/PaletteFile.py -> build/lib.linux-i686-2.3 > copying PIL/ImageColor.py -> build/lib.linux-i686-2.3 > copying PIL/BdfFontFile.py -> build/lib.linux-i686-2.3 > copying PIL/CurImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/PalmImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImagePalette.py -> build/lib.linux-i686-2.3 > copying PIL/MpegImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/SunImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/FitsStubImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImtImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImageWin.py -> build/lib.linux-i686-2.3 > copying PIL/PpmImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/PngImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/MicImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/BufrStubImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/DcxImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImageEnhance.py -> build/lib.linux-i686-2.3 > copying PIL/ImageGL.py -> build/lib.linux-i686-2.3 > copying PIL/TarIO.py -> build/lib.linux-i686-2.3 > copying PIL/TiffImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/JpegImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/MspImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/XpmImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/XVThumbImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImagePath.py -> build/lib.linux-i686-2.3 > copying PIL/Image.py -> build/lib.linux-i686-2.3 > copying PIL/ImageFile.py -> build/lib.linux-i686-2.3 > copying PIL/SgiImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/PdfImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/McIdasImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/GribStubImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/XbmImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/PcxImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImageDraw.py -> build/lib.linux-i686-2.3 > copying PIL/SpiderImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImageFont.py -> build/lib.linux-i686-2.3 > copying PIL/ArgImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/WalImageFile.py -> build/lib.linux-i686-2.3 > copying PIL/PcfFontFile.py -> build/lib.linux-i686-2.3 > copying PIL/IcoImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/GimpPaletteFile.py -> build/lib.linux-i686-2.3 > copying PIL/FpxImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImageSequence.py -> build/lib.linux-i686-2.3 > copying PIL/EpsImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/ImageTk.py -> build/lib.linux-i686-2.3 > copying PIL/PcdImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/__init__.py -> build/lib.linux-i686-2.3 > copying PIL/ImageFileIO.py -> build/lib.linux-i686-2.3 > copying PIL/ImageChops.py -> build/lib.linux-i686-2.3 > copying PIL/GdImageFile.py -> build/lib.linux-i686-2.3 > copying PIL/ImageStat.py -> build/lib.linux-i686-2.3 > copying PIL/TgaImagePlugin.py -> build/lib.linux-i686-2.3 > copying PIL/PSDraw.py -> build/lib.linux-i686-2.3 > copying PIL/ContainerIO.py -> build/lib.linux-i686-2.3 > running build_ext > building '_imaging' extension > creating build/temp.linux-i686-2.3 > creating build/temp.linux-i686-2.3/libImaging > gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 > -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -DHAVE_LIBZ -IlibImaging > -I/usr/include -I/usr/local/include -I/usr/include/python2.3 -c > libImaging/Blend.c -o build/temp.linux-i686-2.3/libImaging/Blend.o > In file included from libImaging/Imaging.h:14, > from libImaging/Blend.c:19: > libImaging/ImPlatform.h:10:20: Python.h: Arquivo ou diret?rio n?o encontrado > libImaging/ImPlatform.h:14:2: #error Sorry, this library requires > support for ANSI prototypes. > libImaging/ImPlatform.h:17:2: #error Sorry, this library requires ANSI > header files. > libImaging/ImPlatform.h:55:2: #error Cannot find required 32-bit integer > type > In file included from libImaging/Blend.c:19: > libImaging/Imaging.h:90: error: syntax error before "INT32" > libImaging/Imaging.h:90: warning: no semicolon at end of struct or union > libImaging/Imaging.h:102: error: syntax error before '}' token > libImaging/Imaging.h:263: error: syntax error before "INT32" > libImaging/Imaging.h:263: warning: no semicolon at end of struct or union > libImaging/Imaging.h:263: warning: data definition has no type or > storage class > libImaging/Imaging.h:263: warning: data definition has no type or > storage class > libImaging/Imaging.h:264: error: syntax error before '*' token > libImaging/Imaging.h:265: warning: data definition has no type or > storage class > libImaging/Imaging.h:391: error: syntax error before "ImagingCRC32" > libImaging/Imaging.h:391: error: syntax error before "crc" > libImaging/Imaging.h:391: warning: data definition has no type or > storage class > libImaging/Blend.c: In function `ImagingBlend': > libImaging/Blend.c:29: error: dereferencing pointer to incomplete type > libImaging/Blend.c:31: error: dereferencing pointer to incomplete type > libImaging/Blend.c:31: error: dereferencing pointer to incomplete type > libImaging/Blend.c:32: error: dereferencing pointer to incomplete type > libImaging/Blend.c:32: error: dereferencing pointer to incomplete type > libImaging/Blend.c:33: error: dereferencing pointer to incomplete type > libImaging/Blend.c:33: error: dereferencing pointer to incomplete type > libImaging/Blend.c:34: error: dereferencing pointer to incomplete type > libImaging/Blend.c:34: error: dereferencing pointer to incomplete type > libImaging/Blend.c:43: error: dereferencing pointer to incomplete type > libImaging/Blend.c:43: error: dereferencing pointer to incomplete type > libImaging/Blend.c:43: error: dereferencing pointer to incomplete type > libImaging/Blend.c:45: error: `NULL' undeclared (first use in this function) > libImaging/Blend.c:45: error: (Each undeclared identifier is reported > only once > libImaging/Blend.c:45: error: for each function it appears in.) > libImaging/Blend.c:51: error: dereferencing pointer to incomplete type > libImaging/Blend.c:52: error: dereferencing pointer to incomplete type > libImaging/Blend.c:53: error: dereferencing pointer to incomplete type > libImaging/Blend.c:54: error: dereferencing pointer to incomplete type > libImaging/Blend.c:55: error: dereferencing pointer to incomplete type > libImaging/Blend.c:61: error: dereferencing pointer to incomplete type > libImaging/Blend.c:62: error: dereferencing pointer to incomplete type > libImaging/Blend.c:63: error: dereferencing pointer to incomplete type > libImaging/Blend.c:64: error: dereferencing pointer to incomplete type > libImaging/Blend.c:65: error: dereferencing pointer to incomplete type > error: command 'gcc' failed with exit status 1 > > # rpm -qa | grep gcc > libgcc-3.4.6-3 > gcc-3.4.6-3 > ------------------------------- > > Any help would be appreciated >1.1.4 is available from centos.karan.org all ready to go. Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263
On Mon, Nov 20, 2006 at 07:26:53PM -0200, Ronan Lucio enlightened us:> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 > -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -DHAVE_LIBZ -IlibImaging > -I/usr/include -I/usr/local/include -I/usr/include/python2.3 -c > libImaging/Blend.c -o build/temp.linux-i686-2.3/libImaging/Blend.o > In file included from libImaging/Imaging.h:14, > from libImaging/Blend.c:19: > libImaging/ImPlatform.h:10:20: Python.h: Arquivo ou diret?rio n?o encontradoIf the babelfish translation is right, it means you don't have Python.h. Do you have python-devel installed? Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263
Reasonably Related Threads
- FW: Maps and plotting
- [LLVMdev] Vectorization of loops with conditional dereferencing
- Is anyone using Review Board on CentOS 5?
- [LLVMdev] Vectorization of loops with conditional dereferencing
- [Bug 97066] New: Blank screen when starting KMS on a GTX970 for kernel 4.6 series