我的brew安装卡在"/usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress“上--我让笔记本电脑开了将近一天,但没有前进。
此脚本将安装:
/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 Xcode Command Line Tools will be installed.
Press RETURN to continue or any other key to abort:
==> /usr/bin/sudo /usr/sbin/chown -R ab:admin /usr/local/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
“卡在这里”
发布于 2022-03-03 17:39:57
我只是遇到了这个问题,对我来说,这基本上是因为Xcode命令行工具无法安装(brew依赖于xcode命令行工具,因此如果缺少xcode命令行工具,它就会尝试安装)。
解决办法是从https://developer.apple.com/download/all/下载xcode命令行工具并手动安装。那么运行brew安装程序就可以了。
发布于 2022-05-23 00:33:06
要安装Xcode命令行工具,还可以在终端提示符下输入xcode-select - install,这将触发内置的在线安装过程。
https://stackoverflow.com/questions/71270240
复制相似问题