繁体   English   中英

Mac OS X 10.9.1上的Spynner安装错误

[英]Spynner installation error on Mac OS X 10.9.1

我无法在Mac OS X 10.9.1(Mavericks)上安装spynner 我收到以下错误:

error: command 'cc' failed with exit status 1

提到安装autopy依赖项时抛出该错误。 我已经安装了Xcode,命令行工具。

cc --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix$

任何帮助将不胜感激。 谢谢。

如您所说,Spynner依赖于Autopy,并且安装失败是因为在编译时autopy的编译失败:

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

已在此处建议修复程序。 您应该从源代码下载autopy并修改文件src / screengrab.c并添加到C文件的顶部

#include <OpenGL/gl.h>

重新编译文件您也可以尝试更改编译标志或从源代码安装libpng

$ git clone git://github.com/msanders/autopy.git

$ cd autopy

#include "/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h"

instead of

#include

$ python setup.py构建

$ sudo python setup.py安装

我遇到了同样的问题,终于解决了。 确保您的命令行工具是最新的,然后从src构建autopy。 对于Xcode 5.1(OSX 10.9)和Xcode 5.1.1(OSX 10.10),请运行以下命令下载并安装最新的命令行工具:

xcode-select --install

完成后,下载autopy:

git clone git://github.com/msanders/autopy.git

安装autopy:

cd autopy && sudo python setup.py install

使用pip安装Spynner:

sudo pip install spynner

希望这可以在将来节省一些时间! **注意:过去我已经安装了命令行工具。 由于我刚刚更新到10.10,因此似乎必须重新安装它们。 说得通。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM