Koozali.org: home of the SME Server

PyKoTa

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
PyKoTa
« on: July 08, 2007, 05:41:47 AM »
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/pkpgcounter


there 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:
Code: [Select]

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
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: PyKoTa
« Reply #1 on: July 08, 2007, 09:08:46 AM »
Quote from: "tropicalview"

there for you need the PIL (Python Imaging Lib)
http://www.pythonware.com/





http://centos.karan.org/el4/extras/stable/i386/RPMS/repodata/repoview/python-imaging-0-1.1.4-7.html

Did you purchase an "Unlimited Entry Pass"?
Regards,
William

IF I give advise.. It's only if it was me....

Offline byte

  • *
  • 2,183
  • +2/-0
PyKoTa
« Reply #2 on: July 08, 2007, 01:21:56 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Thank you
« Reply #3 on: July 08, 2007, 03:31:09 PM »
Thanks william_syd


It worked, i downloaded  from there and installed without anyproblem



Kind regards,

Hendrik
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)