when I try to install python-mysql today, I got a number of compilation error or complaining /Developer/SDKs/MacOSX10.4u.sdk not found, like the following:
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-i386-2.6/MySQLdb
running build_extbuilding ‘_mysql’ extension
Compiling with an SDK that doesn’t seem to exist: /Developer/SDKs/MacOSX10.4u.sdk
Please check your Xcode installation
However, I already installed latest xcode 4.0, which does include latest GCC and SDK.
I tried to find out where the 10.4u.sdk is specified, but could not find it in the system environment, program source and setuptools source.
I tried to export
export SDK=/Developer/SDKs/MacOSX10.5.sdk
export SDKROOT=/Developer/SDKs/MacOSX10.5.sdk
but still has no luck.
so anyone has any idea where this is specified in Mac Snow Leopard pls?
thx
Check your environment for
CFLAGSorLDFLAGS. Both of these can include the-isysrootargument that influences the SDK selection. The other place to start at is to look at the output ofpython2.6-config --cflags --ldflagssince (I believe) that this influences the Makefile generation. Make sure to runeasy_installwith--verboseand see if it yields any additional insight.