building '_imagingtk' extension
creating build/temp.linux-i686-2.4/Tk
/usr/bin/gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -IlibImaging -I/home/tms/Plone-3.0/Python-2.4.4/include -I/usr/local/include -I/usr/include -I/home/tms/Plone-3.0/Python-2.4.4/include/python2.4 -c _imagingtk.c -o build/temp.linux-i686-2.4/_imagingtk.o
_imagingtk.c:20:16: error: tk.h: No such file or directory
_imagingtk.c:23: error: expected ‘)’ before ‘*’ token
_imagingtk.c:31: error: expected specifier-qualifier-list before ‘Tcl_Interp’
_imagingtk.c: In function ‘_tkinit’:
_imagingtk.c:37: error: ‘Tcl_Interp’ undeclared (first use in this function)
_imagingtk.c:37: error: (Each undeclared identifier is reported only once
_imagingtk.c:37: error: for each function it appears in.)
_imagingtk.c:37: error: ‘interp’ undeclared (first use in this function)
_imagingtk.c:45: error: expected expression before ‘)’ token
_imagingtk.c:51: error: ‘TkappObject’ has no member named ‘interp’
_imagingtk.c:55: warning: implicit declaration of function ‘TkImaging_Init’
error: command '/usr/bin/gcc' failed with exit status 1
Traceback (most recent call last):
File "./selftest.py", line 11, in ?
import ImageMath
File "PIL/ImageMath.py", line 19, in ?
import _imagingmath
ImportError: No module named _imagingmath
PIL tests failed.