[英]mac snow leopard setuptools stick to MacOSX10.4u.sdk when trying to install python-mysql
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: 当我今天尝试安装python-mysql时,出现许多编译错误或抱怨/Developer/SDKs/MacOSX10.4u.sdk,如下所示:
running build
运行构建
running build_py
运行build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-i386-2.6/MySQLdb running build_ext
复制MySQLdb / release.py-> build / lib.macosx-10.3-i386-2.6 / MySQLdb运行build_ext
building '_mysql' extension
建立'_mysql'扩展
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.4u.sdk
使用似乎不存在的SDK进行编译:/Developer/SDKs/MacOSX10.4u.sdk
Please check your Xcode installation
请检查您的Xcode安装
However, I already installed latest xcode 4.0, which does include latest GCC and SDK. 但是,我已经安装了最新的xcode 4.0,其中包括最新的GCC和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. 我试图找出指定10.4u.sdk的位置,但是在系统环境,程序源和setuptools源中找不到它。
I tried to export 我试图出口
export SDK=/Developer/SDKs/MacOSX10.5.sdk
导出SDK = / Developer / SDKs / MacOSX10.5.sdk
export SDKROOT=/Developer/SDKs/MacOSX10.5.sdk
导出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? 因此,有人知道Mac Snow Leopard pls在何处指定吗?
thx 谢谢
Check your environment for CFLAGS
or LDFLAGS
. 检查您的环境中是否有
CFLAGS
或LDFLAGS
。 Both of these can include the -isysroot
argument that influences the SDK selection. 这两个都可以包含影响SDK选择的
-isysroot
参数。 The other place to start at is to look at the output of python2.6-config --cflags --ldflags
since (I believe) that this influences the Makefile generation. 另一个起点是查看
python2.6-config --cflags --ldflags
的输出,因为(我相信)这会影响Makefile的生成。 Make sure to run easy_install
with --verbose
and see if it yields any additional insight. 确保使用
--verbose
运行easy_install
,并查看它是否还会产生任何其他见解。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.