在 macOS 上安装 TinyGo 导致命令行工具 (CLT) SDK 文件夹名称不匹配

当按照macOS 的 TinyGo 快速安装指南进行操作时,我遇到了以下错误: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 tinygo

CLT 当前安装在/Library/Developer/CommandLineTools如下所示xcode-select --print-path:


% xcode-select --print-path

/Library/Developer/CommandLineTools

pkgutil显示我有最新的安装:


% 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 OS X 中安装命令行工具(无 Xcode) ”中得到确认。TinyGo 想要将命令行工具安装在哪里,如何安装在那里?


森林海
浏览 512回答 1
1回答

扬帆大鱼

TinyGo 的 macOS 安装程序需要在完全安装 Xcode 时使用的备用位置安装命令行工具(不仅仅是命令行工具)/Applications/Xcode.app/Contents/Developer:.安装 Xcode(比 CLT 大得多的包)后,xcode-select将显示启用 TinyGo 的备用位置:% xcode-select --print-path /Applications/Xcode.app/Contents/Developer
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Go