Compiling Python 3 on OS X Snow Leopard
by
Chris Shenton
—
last modified
Feb 17, 2010 01:39 PM
Default configure and build dumped curious errors, a simple environment setting fixed it.
./Configure --Prefix=/usr/local/python/3.1.1 --enable-shared
then a "make" produced a bunch of errors:
warning: #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid. warning: #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid.
The fix is easy:
make distclean export MACOSX_DEPLOYMENT_TARGET=10.6 ./configure --prefix=/usr/local/python/3.1.1 --enable-shared make
builds successfully.
