1

我正在尝试在装有 OS X 10.6.8 的 MacbookPro 上安装 Lektor。

Imagemagick 和 Python2.7 已经安装。

当我运行安装命令时:

curl -sf https://www.getlektor.com/install.sh | sh

构建过程一直运行,直到在构建“_watchdog_fsevents”扩展时出错。错误是:

cc1:错误:-Werror=unused-command-line-argument-hard-error-in-future:没有选项 -Wunused-command-line-argument-hard-error-in-future

我已将错误之前的输出剪切并粘贴到以下代码部分中。

我应该如何克服这个?

  running build_ext
  building '_watchdog_fsevents' extension
  creating build/temp.macosx-10.6-x86_64-2.7
  creating build/temp.macosx-10.6-x86_64-2.7/src
  gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-error=unused-command-line-argument-hard-error-in-future -DWATCHDOG_VERSION_STRING="0.8.3" -DWATCHDOG_VERSION_MAJOR=0 -DWATCHDOG_VERSION_MINOR=8 -DWATCHDOG_VERSION_BUILD=3 -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/watchdog_fsevents.c -o build/temp.macosx-10.6-x86_64-2.7/src/watchdog_fsevents.o -std=c99 -pedantic -Wall -Wextra -fPIC -Wno-error=unused-command-line-argument-hard-error-in-future
  cc1: error: -Werror=unused-command-line-argument-hard-error-in-future: No option -Wunused-command-line-argument-hard-error-in-future
  cc1: error: -Werror=unused-command-line-argument-hard-error-in-future: No option -Wunused-command-line-argument-hard-error-in-future
  error: command 'gcc-4.2' failed with exit status 1

  ----------------------------------------
  Failed building wheel for watchdog
Failed to build watchdog
4

2 回答 2

0

很可能您的 OS X 版本太旧,无法支持使用您拥有的 gcc 版本安装看门狗。如果您无法升级 OS X 安装,那么我建议您通过 brew 安装最新版本的 clang,并在导出 CC=clang 后安装 lektor。

请注意,Lektor 未针对 OS X < 10.9 进行测试。

于 2016-01-06T17:32:14.913 回答
0

您的问题可能是您未同意许可的 Xcode 更新版本。首先尝试运行: sudo xcodebuild -license 滚动到最底部,它将允许您输入“同意”。这为我解决了这个问题。

于 2016-01-08T17:17:12.330 回答