在MacBookPro OS X 10.6.8上安装Lektor失败

时间:2016-01-05 21:57:04

标签: macos install lektor

我正在尝试使用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

2 个答案:

答案 0 :(得分:0)

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

请注意,Lektor未针对OS X< 10.9。

答案 1 :(得分:0)

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