[Tutor] Compiling Python on MacOSX.

montana sarmxiii@knology.net
Sun, 22 Sep 2002 15:40:44 -0500


--Apple-Mail-2-732953390
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed

Here was Tony's response to my problem:

I believe you are using latest snapshot from Tcl.sf.net, 8.4a4 - thats=20=

pretty old at this point. Either find some X11 headers or compile from=20=

Tk 8.4.0 source using these commands (I am just copying from a post in=20=

the tcl-mac@lists.sourceforge.net mailing list - it worked great for me=20=

but YMMV, ask there if you have troubles).


=A0=A0=A0=A0=A0=A0=A0curl -O=20
http://telia.dl.sourceforge.net/sourceforge/tcl/tcl8.4.0-src.tar.gz
=A0=A0=A0=A0curl -O=20
http://telia.dl.sourceforge.net/sourceforge/tcl/tk8.4.0-src.tar.gz
=A0=A0=A0=A0=A0tar zxf tcl8.4.0-src.tar.gz; ln -fs tcl8.4.0 tcl
=A0=A0=A0=A0=A0=A0=A0tar zxf tk8.4.0-src.tar.gz; ln -fs tk8.4.0 tk

=A0=A0pushd tcl/macosx
=A0=A0=A0=A0=A0=A0=A0make
=A0=A0=A0sudo make install
=A0=A0=A0=A0=A0=A0popd

=A0=A0=A0cp tk/generic/prolog.ps tk/library
=A0=A0=A0=A0=A0pushd tk/macosx
make
=A0=A0=A0sudo make install
=A0=A0=A0=A0=A0=A0popd
-Tony

I'm trying this now. I will let you know how it goes.

Thanks.
SA

"I can do everything on my Mac I used to do on my PC, plus alot more=20
..."
--Me

On Sunday, September 22, 2002, at 09:02 AM, Lance E Sloan wrote:

> --On Saturday, September 21, 2002 10:30 -0500 montana=20
> <sarmxiii@knology.net> wrote:
>> I'm following the directions from:
>> http://tony.lownds.com/macosx/tkinter.html
>>
>> I'm trying to  compile Python 2.2 with aqua Tk support for my=20
>> computer.
>> I'm running 10.2.1 on a G4 Powerbook.
>
> Hey!  I'm trying to do the exact same thing with the same setup.
>
>> When I run 'make' it barfs on the
>> followign error:
>>
>> Modules/_tkinter.c: In function `Sleep':
>> Modules/_tkinter.c:252: warning: implicit declaration of function=20
>> `select'
>> make: *** [Modules/_tkinter.o] Error 1
>
> Sorry to hear that.  I had no problem with that at all.  Where did you=20=

> get Python from?  Was it CVS or the latest tar file?  I used the tar=20=

> file.
>
> The problem I ran into was from step 5, where Tony recommeded adding=20=

> "-I/usr/X11R6/include/".  I ended up emailing Tony and asked him if=20
> that was really necessary because I don't want to install X11.  I also=20=

> just tried removing that line and I found it would all compile, but=20
> Tkinter and Tk didn't play well together.  It produced all kinds of=20
> errors.
>
> I received Tony's response later that I should use Tk 8.4.0 (the final=20=

> release?) rather than 8.4a4 (the alpha/beta?).  The problem is, it is=20=

> only available as source.  I'm having trouble figuring out how to=20
> build and install it using Project Builder.  Apparently it has to be=20=

> built that way, because just using make didn't work.  Tony has AquaTk=20=

> available as part of a 41 MB IDLE_snapshot, but that's too big for me=20=

> to download over my slow-ish cable/AirPort connection.
>
> I've emailed Tony again this morning to see if he knows of any=20
> instructions to guide me through building AquaTk with Project Builder.
>
>

--Apple-Mail-2-732953390
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
	charset=ISO-8859-1

Here was Tony's response to my problem:


I believe you are using latest snapshot from Tcl.sf.net, 8.4a4 - thats
pretty old at this point. Either find some X11 headers or compile from
Tk 8.4.0 source using these commands (I am just copying from a post in
the tcl-mac@lists.sourceforge.net mailing list - it worked great for
me but YMMV, ask there if you have troubles).



<bigger><bigger><bigger>=A0=A0=A0=A0=A0=A0=A0curl -O
http://telia.dl.sourceforge.net/sourceforge/tcl/tcl8.4.0-src.tar.gz

=A0=A0=A0=A0curl -O
http://telia.dl.sourceforge.net/sourceforge/tcl/tk8.4.0-src.tar.gz

=A0=A0=A0=A0=A0tar zxf tcl8.4.0-src.tar.gz; ln -fs tcl8.4.0 tcl

=A0=A0=A0=A0=A0=A0=A0tar zxf tk8.4.0-src.tar.gz; ln -fs tk8.4.0 tk


=A0=A0pushd tcl/macosx

=A0=A0=A0=A0=A0=A0=A0make

=A0=A0=A0sudo make install

=A0=A0=A0=A0=A0=A0popd


=A0=A0=A0cp tk/generic/prolog.ps tk/library

=A0=A0=A0=A0=A0pushd tk/macosx

make

=A0=A0=A0sudo make install

=A0=A0=A0=A0=A0=A0popd

-Tony</bigger></bigger></bigger>


I'm trying this now. I will let you know how it goes.


Thanks.

SA


"I can do everything on my Mac I used to do on my PC, plus alot more
..."

--Me


On Sunday, September 22, 2002, at 09:02 AM, Lance E Sloan wrote:


<excerpt>--On Saturday, September 21, 2002 10:30 -0500 montana
<<sarmxiii@knology.net> wrote:

<excerpt>I'm following the directions from:

http://tony.lownds.com/macosx/tkinter.html


I'm trying to  compile Python 2.2 with aqua Tk support for my computer.

I'm running 10.2.1 on a G4 Powerbook.

</excerpt>

Hey!  I'm trying to do the exact same thing with the same setup.


<excerpt>When I run 'make' it barfs on the

followign error:


Modules/_tkinter.c: In function `Sleep':

Modules/_tkinter.c:252: warning: implicit declaration of function
`select'

make: *** [Modules/_tkinter.o] Error 1

</excerpt>

Sorry to hear that.  I had no problem with that at all.  Where did you
get Python from?  Was it CVS or the latest tar file?  I used the tar
file.


The problem I ran into was from step 5, where Tony recommeded adding
"-I/usr/X11R6/include/".  I ended up emailing Tony and asked him if
that was really necessary because I don't want to install X11.  I also
just tried removing that line and I found it would all compile, but
Tkinter and Tk didn't play well together.  It produced all kinds of
errors.


I received Tony's response later that I should use Tk 8.4.0 (the final
release?) rather than 8.4a4 (the alpha/beta?).  The problem is, it is
only available as source.  I'm having trouble figuring out how to
build and install it using Project Builder.  Apparently it has to be
built that way, because just using make didn't work.  Tony has AquaTk
available as part of a 41 MB IDLE_snapshot, but that's too big for me
to download over my slow-ish cable/AirPort connection.


I've emailed Tony again this morning to see if he knows of any
instructions to guide me through building AquaTk with Project Builder.



</excerpt>=

--Apple-Mail-2-732953390--