I'm trying to install Gentoo Prefix on an iMac (OS-X 10.8.2). During the installation, Python 2.7.3 installation fails. Here is the traceback:
... /usr/bin/ranlib: file: libpython2.7.a(pymath.o) has no symbols ranlib libpython2.7.a ranlib: file: libpython2.7.a(pymath.o) has no symbols gcc -L/Users/me/Gentoo/tmp/usr/lib -o python.exe \ Modules/python.o \ libpython2.7.a -ldl -framework CoreFoundation Traceback (most recent call last): File "./setup.py", line 15, in <module> from distutils.command.build_ext import build_ext File "/Users/me/Gentoo/tmp/var/tmp/python-2.7.3/Python-2.7.3/Lib/distutils/command/build_ext.py", line 37, in <module> class build_ext (Command): File "/Users/me/Gentoo/tmp/var/tmp/python-2.7.3/Python-2.7.3/Lib/distutils/command/build_ext.py", line 67, in build_ext "(default: %s)" % get_platform()), File "/Users/me/Gentoo/tmp/var/tmp/python-2.7.3/Python-2.7.3/Lib/distutils/util.py", line 103, in get_platform cfgvars = get_config_vars() File "/Users/me/Gentoo/tmp/var/tmp/python-2.7.3/Python-2.7.3/Lib/distutils/sysconfig.py", line 568, in get_config_vars flags = _config_vars[key] KeyError: 'CXXFLAGS' make: *** [sharedmods] Error 1
I can only deduce, perhaps wrongly, that
CXXFLAGS was not present in a dictionary
_config_vars when it was expected. But why? Any ideas anyone? I imagine this is Prefix-specific, but perhaps not.