Question about compiling python 30 from subversion repository on OSX

Anthony Kong anthony.hw.kong at gmail.com
Sun Apr 24 06:35:15 CEST 2011


Hi, all,

I have checked out source code from this url http://svn.python.org/projects/python/branches/py3k, then run

./configure  --with-universal-archs=64-bit
make

First of all, I got this message:

-----------------------------------------------
Modules/Setup.dist is newer than Modules/Setup;
check to make sure you have all the updates you
need in your Modules/Setup file.
Usually, copying Modules/Setup.dist to Modules/Setup will work.
-----------------------------------------------

Then the build failed with these messages

/usr/bin/ranlib: file: libpython3.3m.a(dynamic_annotations.o) has no symbols
/usr/bin/ranlib: file: libpython3.3m.a(pymath.o) has no symbols
ranlib libpython3.3m.a
ranlib: file: libpython3.3m.a(dynamic_annotations.o) has no symbols
ranlib: file: libpython3.3m.a(pymath.o) has no symbols
gcc   -framework CoreFoundation -o python.exe Modules/python.o libpython3.3m.a -ldl  -framework CoreFoundation
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
  File "/Users/antkong/wd/python/python3/Lib/io.py", line 60, in <module>
/bin/sh: line 1: 55310 Abort trap              CC='gcc' LDSHARED='gcc -bundle -undefined dynamic_lookup  ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./python.exe -E ./setup.py build
make: *** [sharedmods] Error 134


I wonder what caused these error messages. Is it possible that I am checking out the wrong branch?

The 3.2 branch (http://svn.python.org/projects/python/branches/release32-maint) can be compiled without much issue.


Cheers






More information about the Python-list mailing list