【问题标题】:OSX installing vim via brew for python3OSX 通过 brew 为 python3 安装 vim
【发布时间】: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: 命令行工具已经已安装,使用“软件更新”安装更新
  • 那么,您这样做了吗?软件更新?通过应用商店?

标签: python vim homebrew


【解决方案1】:

解决方案:从https://developer.apple.com/download/more/手动下载安装包(“Xcode.dwg命令行工具”),然后重新运行命令“brew install vim --without-python --with-python3”。现在可以了。

【讨论】:

  • vim: 这个公式没有 --with-python3 选项
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-12-05
  • 2018-04-25
  • 2018-06-19
  • 1970-01-01
相关资源
最近更新 更多