brew 安装 coreutils 失败 10.9.5 OSX

brew install coreutils failing 10.9.5 OSX

安装失败已经2天了coreutils

Last 15 lines from /Users/Mehdi/Library/Logs/Homebrew/coreutils/03.make:

src/ginstall -c
-m 644 'man/unlink.1' '/usr/local/Cellar/coreutils/8.27/share/man/man1/gunlink.1'   src/ginstall -c src/uniq '/usr/local/Cellar/coreutils/8.27/bin/./guniq'  src/ginstall -c -m 644 'man/vdir.1' '/usr/local/Cellar/coreutils/8.27/share/man/man1/gvdir.1' src/ginstall -c src/unlink '/usr/local/Cellar/coreutils/8.27/bin/./gunlink'   src/ginstall -c src/vdir '/usr/local/Cellar/coreutils/8.27/bin/./gvdir'  src/ginstall
-c -m 644 'man/wc.1' '/usr/local/Cellar/coreutils/8.27/share/man/man1/gwc.1'  src/ginstall
-c -m 644 'man/whoami.1' '/usr/local/Cellar/coreutils/8.27/share/man/man1/gwhoami.1'   src/ginstall -c src/wc '/usr/local/Cellar/coreutils/8.27/bin/./gwc'  src/ginstall -c -m 644 'man/yes.1' '/usr/local/Cellar/coreutils/8.27/share/man/man1/gyes.1'   src/ginstall -c src/whoami '/usr/local/Cellar/coreutils/8.27/bin/./gwhoami'   src/ginstall -c src/yes '/usr/local/Cellar/coreutils/8.27/bin/./gyes'   src/ginstall
-c src/ginstall '/usr/local/Cellar/coreutils/8.27/bin' make[2]: *** [install-am] Error 2 make[1]: *** [install-recursive] Error 1 make:
*** [install] Error 2

Do not report this issue to Homebrew/brew or Homebrew/core!


Error: You are using macOS 10.9. We (and Apple) do not provide support for this old version. You may encounter build failures or other breakages. Please create pull-requests instead of filing issues.

这可能是一个愚蠢的问题,但为什么你仍然 运行ning OS 10.9?当前版本是 10.12,10.13 很快就会出来。我不确定这是否与您的问题有任何关系,但即使是错误消息也告诉您 "may encounter build failures or other breakages".

简而言之:除非您有充分的理由不这样做(例如,某些应用程序在较新版本的 macOS 上不 运行),我建议更新到 macOS 10.12 看看它是否在那里工作。

如 Clemens 的回答所述,Homebrew 不支持 macOS 10.9。您可以:

  • 尝试 TigerBrew,一个用于旧 macOS 版本的 Homebrew 分支
  • 从源安装 coreutils,如下所示:

    wget https://ftpmirror.gnu.org/coreutils/coreutils-8.25.tar.xz
    tar xJf coreutils-8.25.tar.xz
    cd coreutils-8.25/
    ./configure --prefix=/usr/local
    make
    sudo make install