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 に答える