为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

Go
森林海 2022-12-26 10:35:00
当按照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/toolsError: 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_Executablespackage-id: com.apple.pkg.CLTools_Executablesversion: 13.4.0.0.1.1651278267volume: /location: /install-time: 1654474872groups: com.apple.FindSystemFiles.pkg-group 重新安装命令行工具导致路径相同并在本文“如何在 Mac OS X 中安装命令行工具(无 Xcode) ”中得到确认。TinyGo 想要将命令行工具安装在哪里,如何安装在那里?
查看完整描述

1 回答

?
扬帆大鱼

TA贡献1799条经验 获得超9个赞

TinyGo 的 macOS 安装程序需要在完全安装 Xcode 时使用的备用位置安装命令行工具(不仅仅是命令行工具)/Applications/Xcode.app/Contents/Developer:.

安装 Xcode(比 CLT 大得多的包)后,xcode-select将显示启用 TinyGo 的备用位置:

% xcode-select --print-path
/Applications/Xcode.app/Contents/Developer


查看完整回答
反对 回复 2022-12-26
  • 1 回答
  • 0 关注
  • 240 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信