[Pythonmac-SIG] Re: Compiling python...
Murphy/Kostick
jwmdck@monmouth.com
Mon, 28 May 2001 08:08:03 -0400
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
--
jwmdck@monmouth.com
Wall Township, New Jersey USA