當(dāng)按照macOS 的 TinyGo 快速安裝指南進(jìn)行操作時(shí),我遇到了以下錯(cuò)誤: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.完整的安裝說(shuō)明只是兩個(gè)命令:% brew tap tinygo-org/tools% brew install tinygoCLT 當(dāng)前安裝在/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 重新安裝命令行工具導(dǎo)致路徑相同并在本文“如何在 Mac OS X 中安裝命令行工具(無(wú) Xcode) ”中得到確認(rèn)。TinyGo 想要將命令行工具安裝在哪里,如何安裝在那里?
1 回答

揚(yáng)帆大魚(yú)
TA貢獻(xiàn)1799條經(jīng)驗(yàn) 獲得超9個(gè)贊
TinyGo 的 macOS 安裝程序需要在完全安裝 Xcode 時(shí)使用的備用位置安裝命令行工具(不僅僅是命令行工具)/Applications/Xcode.app/Contents/Developer
:.
安裝 Xcode(比 CLT 大得多的包)后,xcode-select
將顯示啟用 TinyGo 的備用位置:
% xcode-select --print-path /Applications/Xcode.app/Contents/Developer
- 1 回答
- 0 關(guān)注
- 371 瀏覽
添加回答
舉報(bào)
0/150
提交
取消