macos - Mac Os 10.10 或 10.11 上的 Homebrew 不起作用

标签 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

我不知道为什么优胜美地会触发这个版本检查。

最佳答案

编辑 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.1010.1 相同低于 10.5

关于macos - Mac Os 10.10 或 10.11 上的 Homebrew 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26501126/

相关文章:

php - 在 osx 10.9 上编译 phalcon 时出现问题

opencv - 用于构建 OpenCV 的 OpenCL 内核错误生成

swift - 将文档数据传递给优胜美地中的 View Controller ( Storyboard)

ios - 如何从 Mac OS X 导出证书以获取一对 .cert 和 .key 文件?

c++ - 在 Mac OSX 中替代 --no-undefined

ios - 需要CFReadStream block ,直到未填充缓冲区大小

curl - 无法使用 brew 安装任何东西,错误 : Failed to download resource "git--html"

c++ - brew 警告 : dependency was built with a different C++ standard library

jenkins - 通过 Homebrew 安装 Jenkins 时,JENKINS_HOME 是什么?

macos - 如何获取右侧 Touch Bar 控制中心的项目?