【发布时间】:2018-09-30 10:32:32
【问题描述】:
我尝试在 macOS Mojave 上安装 Homebrew,我运行了这个命令
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
我收到了这个错误
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch
/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
Password:****
touch: /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress: Not a directory
Failed during: /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
还有一件事,我下载了 Xcode 命令行工具文件,我倾向于在我的 macOS 上安装,但我从包安装程序中收到了失败的消息。
你的
礼萨德纳维
【问题讨论】:
-
您是否尝试过先安装命令行工具 (
xcode-select --install),然后再安装 homebrew? -
是的,我确实尝试过该命令,显示一个对话框并单击安装,但出现此错误:“由于网络问题,无法下载软件”
-
@Lukas 不幸的是,我必须重新安装 macOS,之后一切正常。
-
我从 Sierra 升级到 Mojave,遇到了类似的问题,运行 xcode-select --install 并在尝试下载命令行工具时遇到未知网络错误。同样的事情一遍又一遍。重新安装 Mojave,然后就可以了。
标签: xcode macos homebrew macos-mojave