无法安装命令行工具,"xcode-select --install"不起作用 [英] Can't install Command Line Tool, "xcode-select --install" doesn't work
问题描述
我不知道如何在OSX Mavericks上安装命令行工具. 或者更好:我知道该怎么做(我刚刚在另一台MacBook上做到了),但是这次出了点问题.
I don't know how to install the Command Line Tools on OSX Mavericks. Or better: I know how to do it (I just did it on another MacBook), but something goes wrong this time.
发生了什么事
- 我在OSX Mavericks上安装Homebrew
- 自制软件要求我安装CLT并为此运行GUI
- 我犯了一个错误:我安装了XCode而不是CLT,但是我发现未随CLT一起安装
现在,当我写
brew doctor
我明白了
警告:未安装开发者工具.
您应该安装命令行工具.
运行`xcode-select --install`来安装它们.
Warning: No developer tools installed.
You should install the Command Line Tools.
Run `xcode-select --install` to install them.
我写了它的意思,但我总是得到
I write what it says, but I get always
用法:xcode-select -print-path
或:xcode-select -switch
或:xcode-select -version
参数:
-print-path nbsp; b&b ; nbsp; n文件夹
-switch xcode_folder_path Xcode文件夹
-version b ; -nsp选择版本信息
Usage: xcode-select -print-path
or: xcode-select -switch
or: xcode-select -version
Arguments:
-print-path Prints the path of the current Xcode folder
-switch xcode_folder_path Sets the path for the current Xcode folder
-version Prints xcode-select version information
我认为我应该看到一开始看到的GUI(屏幕截图),并且可以安装CLT.
I think I should instead see that GUI (screenshots) that I saw at the beginning and that let me install the CLT.
有人知道我该如何再次运行该GUI吗?
Does anyone know how can I run that GUI again?
推荐答案
尝试直接从Apple Developer Tools网站下载: https://developer.apple.com/downloads/index.action .
这需要使用开发者帐户登录.
Try downloading directly from the Apple Developer Tools site: https://developer.apple.com/downloads/index.action.
This requires signing in with a developer account.
这篇关于无法安装命令行工具,"xcode-select --install"不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!