【发布时间】:2018-01-10 06:20:26
【问题描述】:
我想通过 brew 为 python3 安装 vim,但它总是失败。 以下是日志:
LiuJustins-MacBook-Pro:~ justin$ brew install vim --without-python --with-python3
==> Downloading https://github.com/vim/vim/archive/v8.0.1400.tar.gz
Already downloaded: /Users/justin/Library/Caches/Homebrew/vim-8.0.1400.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.0.1400_4/share
==> make
Last 15 lines from /Users/justin/Library/Logs/Homebrew/vim/02.make:
CF_EXPORT const CFCalendarIdentifier kCFISO8601Calendar API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h:197:63: error: expected ';' after top level declarator
CF_EXPORT const CFCalendarIdentifier kCFIslamicTabularCalendar API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h:198:65: error: expected ';' after top level declarator
CF_EXPORT const CFCalendarIdentifier kCFIslamicUmmAlQuraCalendar API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [objects/os_mac_conv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
20 errors generated.
make[1]: *** [objects/os_macosx.o] Error 1
make: *** [first] Error 2
阅读:https://docs.brew.sh/Troubleshooting.html
Error: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.
【问题讨论】:
-
不要将图像用于代码/消息。请改为在此处发布。
-
我已附上邮件。
-
那么,您是否尝试像错误所说的那样更新命令行工具?通过 XCode 的 App Store 升级;
xcode-select --install -
是的,我已经运行 xcode-select --install 如下: LiuJustins-MacBook-Pro:Homebrew justin$ xcode-select --install xcode-select: error: 命令行工具已经已安装,使用“软件更新”安装更新
-
那么,您这样做了吗?软件更新?通过应用商店?