Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling python...



Dan Wolfe wrote:
>
> Here's a recipe for Python 2.1...
>
> - gnutar -xvzf Python-2.1.tgz
>  cd Python-2.1/
>  ./configure --with-dyld --with-suffix=.x
>  change Makefile line
> OPT= -g -O2 -Wall -Wstrict-prototypes
> to
> OPT= -g -O2 -Wall -Wstrict-prototypes -no-cpp-precomp
> --> this change gets around BSD header problems that were written up in
> RADAR earlier
>  make
>  Work around small stack size (512k) which causes test_re and test_sre
> to seg fault
> limit stacksize 2M
>  make test
>  sudo make install
>  cd /usr/local/bin/
>  sudo mv python.x python
>  sudo mv python2.1.x python2.1
>
> - Dan

It's probably worthwhile to add at the end:

sudo update_prebinding -root /

I found this speeded things up for me.

Jim Murphy
--
email@hidden
Wall Township, New Jersey USA


References: 
 >Compiling python... (From: Dan Wolfe <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.