首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装TinyGo会导致命令行工具(CLT) SDK文件夹名称在macOS上不匹配

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

Stack Overflow用户
提问于 2022-06-21 16:56:43
回答 1查看 240关注 0票数 2

在遵循TinyGo macOS快速安装指南时,我遇到以下错误:Error: The contents of the SDKs in your Command Line Tools (CLT) installation do not match the SDK folder names.

代码语言:javascript
复制
% 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.

完整的安装说明只是两个命令:

代码语言:javascript
复制
% brew tap tinygo-org/tools
% brew install tinygo

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

代码语言:javascript
复制
% xcode-select --print-path
/Library/Developer/CommandLineTools

pkgutil显示了我的最新安装:

代码语言:javascript
复制
% 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希望在哪里安装命令行工具,以及如何在那里安装?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-06-21 16:58:26

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

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

代码语言:javascript
复制
% xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72704531

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档