From owner-freebsd-questions@FreeBSD.ORG Wed Nov 14 15:53:57 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFD3816A41B for ; Wed, 14 Nov 2007 15:53:57 +0000 (UTC) (envelope-from tonylabarbara@aol.com) Received: from imo-m21.mx.aol.com (imo-m21.mx.aol.com [64.12.137.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8EBD713C4E5 for ; Wed, 14 Nov 2007 15:53:56 +0000 (UTC) (envelope-from tonylabarbara@aol.com) Received: from tonylabarbara@aol.com by imo-m21.mx.aol.com (mail_out_v38_r9.3.) id w.d4b.17abd94b (48336); Wed, 14 Nov 2007 10:53:36 -0500 (EST) Received: from webmail-me12 (webmail-me12.webmail.aol.com [64.12.88.204]) by ciaaol-d01.mail.aol.com (v120.9) with ESMTP id MAILCIAAOLD016-bcd0473b19ff2c7; Wed, 14 Nov 2007 10:53:36 -0400 References: <8C9F4E55D5AFC1C-918-2AB6@webmail-me12.sysops.aol.com> <473B119C.2090105@unsane.co.uk> To: jhary@unsane.co.uk Date: Wed, 14 Nov 2007 10:53:36 -0500 In-Reply-To: <473B119C.2090105@unsane.co.uk> X-MB-Message-Source: WebUI Received: from 190.166.0.252 by webmail-me12.sysops.aol.com (64.12.88.204) with HTTP (WebMailUI); Wed, 14 Nov 2007 10:53:35 -0500 MIME-Version: 1.0 From: tonylabarbara@aol.com X-MB-Message-Type: User X-Mailer: AOL WebMail 31361-STANDARD Message-Id: <8C9F4EDA68542DE-918-2F40@webmail-me12.sysops.aol.com> X-AOL-IP: 64.12.88.204 X-Spam-Flag: NO Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Tkinter Libraries Needed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2007 15:53:58 -0000 Right. I tried that a while back and forgot I had. This is what I get: server726# cd /usr/ports/graphics/py-imaging server726# make install clean =3D=3D=3D>=C2=A0 Installing for py24-imaging-1.1.5 =3D=3D=3D>=C2=A0=C2=A0 py24-imaging-1.1.5 depends on file: /usr/local/lib/py= thon2.4/site-packages/_tkinter.so - found =3D=3D=3D>=C2=A0=C2=A0 py24-imaging-1.1.5 depends on file: /usr/local/bin/py= thon - found =3D=3D=3D>=C2=A0=C2=A0 py24-imaging-1.1.5 depends on shared library: jpeg.9=20= - found =3D=3D=3D>=C2=A0=C2=A0 py24-imaging-1.1.5 depends on shared library: freetyp= e.9 - found =3D=3D=3D>=C2=A0=C2=A0 Generating temporary packing list =3D=3D=3D>=C2=A0 Checking if graphics/py-imaging already installed =3D=3D=3D>=C2=A0=C2=A0 An older version of graphics/py-imaging is already in= stalled (py23-imaging-1.1.5) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 You may wish to ``make deinstall'' and instal= l this port again =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 by ``make reinstall'' to upgrade it properly. =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 If you really wish to overwrite the old port=20= of graphics/py-imaging =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 without deleting it first, set the variable "= FORCE_PKG_REGISTER" =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 in your environment or the "make install" com= mand line. *** Error code 1 Stop in /usr/ports/graphics/py-imaging. server726# make deinstall =3D=3D=3D>=C2=A0 Deinstalling for graphics/py-imaging server726# make reinstall =3D=3D=3D>=C2=A0 Installing for py24-imaging-1.1.5 =3D=3D=3D>=C2=A0=C2=A0 py24-imaging-1.1.5 depends on file: /usr/local/lib/py= thon2.4/site-packages/_tkinter.so - found =3D=3D=3D>=C2=A0=C2=A0 py24-imaging-1.1.5 depends on file: /usr/local/bin/py= thon2.4 - found =3D=3D=3D>=C2=A0=C2=A0 py24-imaging-1.1.5 depends on shared library: jpeg.9=20= - found =3D=3D=3D>=C2=A0=C2=A0 py24-imaging-1.1.5 depends on shared library: freetyp= e.9 - found =3D=3D=3D>=C2=A0=C2=A0 Generating temporary packing list =3D=3D=3D>=C2=A0 Checking if graphics/py-imaging already installed =3D=3D=3D>=C2=A0=C2=A0 An older version of graphics/py-imaging is already in= stalled (py23-imaging-1.1.5) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 You may wish to ``make deinstall'' and instal= l this port again =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 by ``make reinstall'' to upgrade it properly. =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 If you really wish to overwrite the old port=20= of graphics/py-imaging =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 without deleting it first, set the variable "= FORCE_PKG_REGISTER" =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 in your environment or the "make install" com= mand line. *** Error code 1 Stop in /usr/ports/graphics/py-imaging. *** Error code 1 Stop in /usr/ports/graphics/py-imaging. Ideas? TIA, Tony /usr/ports/graphics/py-imaging -----Original Message----- From: Vince To: tonylabarbara@aol.com Cc: freebsd-questions@freebsd.org Sent: Wed, 14 Nov 2007 11:17 am Subject: Re: Tkinter Libraries Needed tonylabarbara@aol.com wrote: Hi; After a second googling, I discovered the reason I can't install the Python= =20 maging Library (PIL) appears to be because I need some development=20 ibraries...that I can't find in the ports. I'm running FBSD 5.5. I=C2=B4ve i= nstalled=20 ope 2.10.5 on top of Python 2.4.2 (not optimal, but it will work, according=20= to=20 he build instructions). I installed Plone 3.0.2 and I get errors when I cran= k=20 p Zope, all related to a non-existent PIL. So I d/l/d the latest PIL, ploppe= d=20 t in my Extensions dir, ran this: =20 'm not knowlegeable on python but usr/ports/graphics/py-imaging looks like what you wanted. (version .1.6 which seems to be the latest) If you install it from ports it hould pull in what it needs. Vince > python setup.py build_ext -i =20 and got this: =20 =20 running build_ext=20 =20 building '_imagingtk' extension=20 =20 creating build/temp.freebsd-5.5-RELEASE-i386-2.4/Tk=20 =20 cc -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=3Dwchar_t=20 DTHREAD_STACK_SIZE=3D0x100000 -fPIC -I/usr/local/include/freetype2 -IlibImag= ing=20 I/usr/local/include -I/usr/include -I/usr/local/include/python2.4 -c=20 imagingtk.c -o build/temp.freebsd-5.5-RELEASE-i386-2.4/_imagingtk.o=20 =20 _imagingtk.c:20:16: tk.h: No such file or directory=20 =20 _imagingtk.c:23: error: syntax error before '*' token=20 =20 _imagingtk.c:31: error: syntax error before "Tcl_Interp"=20 =20 _imagingtk.c: In function `_tkinit':=20 =20 _imagingtk.c:37: error: `Tcl_Interp' undeclared (first use in this function= )=20 =20 _imagingtk.c:37: error: (Each undeclared identifier is reported only once=20 =20 _imagingtk.c:37: error: for each function it appears in.)=20 =20 _imagingtk.c:37: error: `interp' undeclared (first use in this function)=20 =20 _imagingtk.c:45: error: syntax error before ')' token=20 =20 _imagingtk.c:50: error: `app' undeclared (first use in this function)=20 =20 _imagingtk.c: At top level:=20 =20 _imagingtk.c:55: warning: parameter names (without types) in function=20 eclaration=20 =20 _imagingtk.c:55: error: conflicting types for 'TkImaging_Init'=20 =20 _imagingtk.c:23: error: previous declaration of 'TkImaging_Init' was here=20 =20 _imagingtk.c:55: error: conflicting types for 'TkImaging_Init'=20 =20 _imagingtk.c:23: error: previous declaration of 'TkImaging_Init' was here=20 =20 _imagingtk.c:55: warning: data definition has no type or storage class=20 =20 _imagingtk.c:57: error: syntax error before '&' token=20 =20 error: command 'cc' failed with exit status 1 =20 According to my googling... =20 =20 =20 the setup procedure has determined that your Python has been built with =20 Tkinter, and that Tcl/Tk libraries and include files seem to be available,=20= but =20 the compiler cannot find them, for some unknown reason. =20 have you tried installing the Tcl and Tk development libraries ? (usually =20 tcl-devel and tk-devel) =20 . =20 =20 I cannot find any such animals. Ideas on what to do? TIA, Tony =20 =20 =20 =20 ________________________________________________________________________ Email and AIM finally together. You've gotta check out free AOL Mail! -=20 ttp://mail.aol.com _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org= " ________________________________________________________________________ Email and AIM finally together. You've gotta check out free AOL Mail! - http= ://mail.aol.com