[Image-SIG] Install problems on Fedora Core release 2

Fredrik Lundh fredrik at pythonware.com
Mon Jun 13 12:04:52 CEST 2005

"CUCULIERE Marc (CS)" wrote:

> I tryed to install version 1.1.4 of PIL but the install did not work :
> NameError: name 'EXTRA_COMPILE_ARGS' is not defined" (@PIL124)
> I looked a this problem and a solution was proposed only on MAC OS X

the patch on this page works on all platforms:


you might have misinterpreted the comment; it was a OS X-specific change that
broke the script (under certain conditions), but the script is equally broken on all
platforms that happens to have freetype but not tk.

> I called my client who told me to try to install the latest version (1.1.5)
> It didn't work, the logs are below
> (mcuculie is simply user, not a super/powerfull user)

> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386
> -I/usr/include/freetype2 -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
> cc1: error: invalid option `tune=pentium4'
> error: command 'gcc' failed with exit status 1

the gcc options are determined by the Python setup procedure, so it looks like
you've built Python on one machine, and is trying to build PIL on a machine that
has a different (older?) version of gcc.

make sure you're using the gcc version shipped with FC2 (or a later version),
or see Jim's mail for a workaround.


More information about the Image-SIG mailing list