Dear all,
I try to install Pykota (a printer administration program)
http://www.pykota.com/by the installation the pakkage pkpgcounter is needed
http://www.pykota.com/software/pkpgcounterthere for you need the PIL (Python Imaging Lib)
http://www.pythonware.com/when i try to install the PIL i always get this error:
error: command 'gcc' failed with exit status 1
all the GCC and python packages are installed by yum install gcc* and yum install python*
how can i solve this problem?
see here the whole error message:
building '_imagingtk' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -IlibImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.3 -c Tk/tkImaging.c -o build/temp.linux-i686-2.3/Tk/tkImaging.o
Tk/tkImaging.c:51:16: tk.h: No such file or directory
Tk/tkImaging.c:73: error: syntax error before "clientdata"
Tk/tkImaging.c: In function `PyImagingPhotoPut':
Tk/tkImaging.c:77: error: `Tk_PhotoHandle' undeclared (first use in this function)
Tk/tkImaging.c:77: error: (Each undeclared identifier is reported only once
Tk/tkImaging.c:77: error: for each function it appears in.)
Tk/tkImaging.c:77: error: syntax error before "photo"
Tk/tkImaging.c:78: error: `Tk_PhotoImageBlock' undeclared (first use in this function)
Tk/tkImaging.c:80: error: `argc' undeclared (first use in this function)
Tk/tkImaging.c:81: error: `interp' undeclared (first use in this function)
Tk/tkImaging.c:81: error: `argv' undeclared (first use in this function)
Tk/tkImaging.c:83: error: `TCL_ERROR' undeclared (first use in this function)
Tk/tkImaging.c:87: error: `photo' undeclared (first use in this function)
Tk/tkImaging.c:121: error: `block' undeclared (first use in this function)
Tk/tkImaging.c:147: error: syntax error before "run"
Tk/tkImaging.c:153: error: `run' undeclared (first use in this function)
Tk/tkImaging.c:196: error: `TCL_OK' undeclared (first use in this function)
Tk/tkImaging.c: At top level:
Tk/tkImaging.c:201: error: syntax error before "clientdata"
Tk/tkImaging.c: In function `PyImagingPhotoGet':
Tk/tkImaging.c:204: error: `Tk_PhotoHandle' undeclared (first use in this function)
Tk/tkImaging.c:204: error: syntax error before "photo"
Tk/tkImaging.c:205: error: `Tk_PhotoImageBlock' undeclared (first use in this function)
Tk/tkImaging.c:207: error: `argc' undeclared (first use in this function)
Tk/tkImaging.c:208: error: `interp' undeclared (first use in this function)
Tk/tkImaging.c:208: error: `argv' undeclared (first use in this function)
Tk/tkImaging.c:210: error: `TCL_ERROR' undeclared (first use in this function)
Tk/tkImaging.c:214: error: `photo' undeclared (first use in this function)
Tk/tkImaging.c:222: error: `block' undeclared (first use in this function)
Tk/tkImaging.c: At top level:
Tk/tkImaging.c:241: error: syntax error before '*' token
Tk/tkImaging.c: In function `TkImaging_Init':
Tk/tkImaging.c:243: error: `interp' undeclared (first use in this function)
Tk/tkImaging.c:244: error: `ClientData' undeclared (first use in this function)
Tk/tkImaging.c:244: error: syntax error before numeric constant
Tk/tkImaging.c:246: error: syntax error before numeric constant
error: command 'gcc' failed with exit status 1