Mac OS 10.10或10.11上的Homebrew无效

时间:2014-10-22 05:56:50

标签: macos homebrew osx-yosemite

安装Homebrew后,当我运行任何brew ***时,我不断收到此错误:

Homebrew requires Leopard or higher. For Tiger support, see:
https://github.com/mistydemeo/tigerbrew

我的环境:Mac OS 10.10(优胜美地)

我查看了brew.rb来源,它有:

if MACOS and MACOS_VERSION < 10.5
  abort <<-EOABORT.undent
    Homebrew requires Leopard or higher. For Tiger support, see:
    http://github.com/sceaga/homebrew/tree/tiger
  EOABORT
end

我不知道为什么Yosemite会触发此版本检查。

2 个答案:

答案 0 :(得分:44)

编辑brew.rb文件以获取此信息:

# 10.10 stands for Mac OS Yosemite
# 10.11 stands for Mac OS El Capitan
if MACOS and MACOS_VERSION < 10.5 and MACOS_VERSION != 10.1 and MACOS_VERSION != 10.11
  abort <<-EOABORT.undent
    Homebrew requires Leopard or higher. For Tiger support, see:
    http://github.com/sceaga/homebrew/tree/tiger
  EOABORT
end

然后安装好。

这是因为10.10与低于10.1的{​​{1}}相同

答案 1 :(得分:4)

以上更改对我不起作用.. 它给出了错误 错误:Mac OS X`10.1&#39;无效

我不得不将brew.rb更改为:

if MACOS_VERSION == 10.10
        MACOS_VERSION = 10.99
end

if MACOS and MACOS_VERSION < 10.5