【问题标题】:brew install coreutils failing 10.9.5 OSXbrew install coreutils 失败 10.9.5 OSX
【发布时间】:2017-07-10 15:15:04
【问题描述】:

我已经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.

【问题讨论】:

  • 底部的错误非常清楚。您的系统可能不在 Homebrew 的支持窗口中。如果无法升级,则可能需要进行源安装。
  • 如何进行 coreutils 的源代码安装?
  • A) 获取源代码。 B) 遵循编译和安装说明。

标签: ruby macos homebrew gnu-coreutils


【解决方案1】:

正如 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
    

【讨论】:

    【解决方案2】:

    这可能是一个愚蠢的问题,但为什么您仍在运行 OS 10.9?当前版本是 10.12,10.13 很快就会发布。我不确定这是否与您的问题有任何关系,但即使是错误消息也会告诉您“可能会遇到构建失败或其他损坏”。

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

    【讨论】:

    • 感谢您的快速回答 Clemens 但我很确定有一种方法可以使我的当前版本正确...
    • 我只能查看coreutils Homebrew formula 中的内容,它只列出了 Yosemite、El Capitan 和 Sierra,但没有列出 Mavericks(你的)。如果您查看版本历史记录,Mavericks was removed last November - 因此当前版本的 coreutils 可能不支持它。您也许可以尝试安装 8.25 - 这似乎是最后一个官方支持的版本。
    猜你喜欢
    • 2014-11-27
    • 2012-01-29
    • 1970-01-01
    • 2013-04-03
    • 1970-01-01
    • 2023-03-14
    • 1970-01-01
    • 2016-07-31
    • 1970-01-01
    相关资源
    最近更新 更多