使用Homebrew在使用Mountain Lion的MBA上安装python时构建失败

时间:2012-10-01 19:50:03

标签: python macos homebrew

我收到以下错误消息,但在找到的链接中找不到解决方案。

==> make install PYTHONAPPSDIR=/usr/local/Cellar/python/2.7.3
ln -sf pythonw2 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/pythonw"
lipo -extract i386 -output /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/python2.7-32 pythonw
lipo: input file (pythonw) must be a fat file when the -extract option is specified
make[1]: *** [install_pythonw] Error 1
make: *** [frameworkinstallapps] Error 2

Error: python did not build
Logs: /Users/einar/Library/Logs/Homebrew/python/
Help: https://github.com/mxcl/homebrew/wiki/troubleshooting
      https://github.com/mxcl/homebrew/issues/12918
      https://github.com/mxcl/homebrew/issues/15199

我正在尝试关注this guide

2 个答案:

答案 0 :(得分:0)

我没有正确使用RTFM。

“尝试使用旧版环境,例如来自https://github.com/mxcl/homebrew/wiki/troubleshooting的brew install --env = std graphviz”修复它就好了。

答案 1 :(得分:0)

使用:

    $ brew install python --framework --with-brewed-openssl