在macOS上安装Homebrew时跳过命令行工具的安装

Tho*_*her 5 macos homebrew xcode-command-line-tools

我正在macOS High Sierra 10.13上安装自制软件。我已经安装了Xcode命令行工具,这是自制软件的要求。开始安装自制软件时,我不得不安装命令行工具(或中止安装)。当我这样做时,安装过程将挂起。我不明白为什么挂起,但更重要的是,当我可以证明它们已经在我的机器上可用时,我也不明白为什么它试图安装CLT。

ma1*_*w28 5

  1. 右键单击下面的链接并将其另存为homebrew-install.sh
    https://raw.githubusercontent.com/Homebrew/install/master/install.sh

  2. homebrew-install.sh使用文本编辑器打开并将方法的定义更改should_install_command_line_toolsreturn 1

  3. 使homebrew-install.sh可执行文件(通过运行chmod u+x homebrew-install.sh)然后运行./homebrew-install.sh