我正在尝试将 Homebrew 安装到 Intel MacBookPro (macOS Catalina) 上,但/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
在终端中运行时,它似乎在安装 CommandLineTools 时挂起(它挂起的具体行是==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress)。
我已经在这台机器上完整安装了 Xcode 11(据我所知,它安装了 Xcode CommandLineTools)。
导航到 /tmp 后,我发现它确实成功运行touch并创建了它运行的命令中描述的文件,但从未向其中写入任何内容。
我等了大约一个小时也没有结果。这是日志:
==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following existing directories will be made group writable:
/usr/local/bin
/usr/local/lib
==> The following existing directories will have their owner set to (redacted for privacy): …Run Code Online (Sandbox Code Playgroud)