Xcode 家用brew安装在高负载下失败
我正在尝试在一台Mac mini上安装自制软件,它的版本为High Sierra v10.13。我按照指示运行以下命令:Xcode 家用brew安装在高负载下失败,xcode,macos,homebrew,macos-high-sierra,Xcode,Macos,Homebrew,Macos High Sierra,我正在尝试在一台Mac mini上安装自制软件,它的版本为High Sierra v10.13。我按照指示运行以下命令: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 终端通知我它将安装brew并询问密码,但最终失败并显示以下消息: The operation couldn’t be completed. (NSURLErrorDomain e
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
终端通知我它将安装brew并询问密码,但最终失败并显示以下消息:
The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
==> Installing
==> /usr/bin/sudo /usr/sbin/softwareupdate -i
Software Update Tool
: No such update
No updates are available.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
xcode-select: error: invalid developer directory '/Library/Developer/CommandLineTools'
Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
请帮我解决这个问题。谢谢。我在一位高级程序员的帮助下解决了这个问题。 错误是由于缺少Xcode命令行界面,即使它显示在Xcode>>首选项>>位置>>命令行工具中
因此,我不得不从我的Apple帐户下载部分手动下载命令行界面dmg文件并安装它 我也遇到过类似的问题,所以我在这里发布这个帖子是为了帮助任何有痛苦的人 命令brew doctor告诉我某些已安装的公式缺少依赖项 执行命令brew upgrade后,我得到一些依赖项的错误(以下是openjdk的示例): 我是如何解决这个问题的:
- sudoxcode选择-r
- 编辑并设置Mac的日期为2019年10月1日
- sudo xcodebuild-runFirstLaunch
- sudoxcode选择-s/Applications/xcode.app/Contents/Developer
- brew升级
configure: error: No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK
/private/tmp/openjdk-20200219-89506-1wim844/jdk13u-jdk-13.0.2+8/build/.configure-support/generated-configure.sh: line 82: 5: Bad file descriptor
configure exiting with result code 1
These open issues may also help:
Migrate formulae to depend on `openjdk`.