在遵循TinyGo macOS快速安装指南时,我遇到以下错误:Error: The contents of the SDKs in your Command Line Tools (CLT) installation do not match the SDK folder names.
% brew install tinygo
==> Installing tinygo from tinygo-org/tools
Error: The contents of the SDKs in your Command Line Tools (CLT) installation do not match the SDK folder names.
A clean reinstall of Command Line Tools (CLT) should fix this.完整的安装说明只是两个命令:
% brew tap tinygo-org/tools
% brew install tinygoCLT当前安装在/Library/Developer/CommandLineTools中,如xcode-select --print-path所示
% xcode-select --print-path
/Library/Developer/CommandLineToolspkgutil显示了我的最新安装:
% pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 13.4.0.0.1.1651278267
volume: /
location: /
install-time: 1654474872
groups: com.apple.FindSystemFiles.pkg-group 重新安装命令行工具会导致路径相同,并在本文"如何在Mac中安装命令行工具(没有Xcode)“中得到确认。TinyGo希望在哪里安装命令行工具,以及如何在那里安装?
发布于 2022-06-21 16:58:26
TinyGo的macOS安装程序要求命令行工具安装在Xcode完全安装时使用的备用位置(不仅仅是命令行工具):/Applications/Xcode.app/Contents/Developer。
在安装Xcode (比CLT大得多的包)之后,xcode-select将显示能够安装TinyGo的备用位置:
% xcode-select --print-path
/Applications/Xcode.app/Contents/Developerhttps://stackoverflow.com/questions/72704531
复制相似问题