0

我想创建一个 python 程序,它可以持续监视目录中的任何更改,如果更改发生如创建或修改,它应该通过 exec 执行 shell 脚本。出于这个原因,我试图在我的 MacOsX Mavriks 上使用看门狗。但是每次我尝试安装它时,我都会收到一条错误消息,说我是通过

sudo easy_install 看门狗

Searching for watchdog

Reading http://pypi.python.org/simple/watchdog/
Best match: watchdog 0.7.1
Downloading https://pypi.python.org/packages/source/w/watchdog/watchdog-0.7.1.tar.gz#md5=ffec8b4afd1058e76f6c664ade8a0de7
Processing watchdog-0.7.1.tar.gz
Running watchdog-0.7.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Z2T0_T/watchdog-0.7.1/egg-dist-tmp-rxk3TS
no previously-included directories found matching 'docs/source/_themes/.git*'
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: Setup script exited with error: command 'cc' failed with exit status 1

我还安装了它的所有依赖项,包括自制软件。

是否有任何其他 FAM 可以在我的 Mac 上轻松运行,或者这东西将如何工作

4

1 回答 1

0

你需要一个额外的archflag。

sudo ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" easy_install 看门狗

这是一个 OSX 更新问题。看到这个类似(但不重复)的问题安装枕头,得到 -Wunused-command-line-argument-hard-error-in-future

于 2014-05-21T06:04:32.280 回答