`xcode-select --install` 失败

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20366125/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 05:01:36  来源:igfitidea点击:

`xcode-select --install` failing

xcodeterminalimagemagickmacports

提问by Jadam

Running OS X 10.9 trying to upload MacPorts following their guide

运行 OS X 10.9 尝试按照他们的指南上传 MacPorts

Jadam$ xcode-select --version
xcode-select version 2333.

so I have Xcode on the computer, but when I enter in xcode-select --installI get the following return in the terminal:

所以我在计算机上有 Xcode,但是当我输入时,xcode-select --install我在终端中得到以下返回:

xcode-select: note: install requested for command line developer tools

Immediately followed by a, pop-up, update error message:

紧接着是一个,弹出,更新错误信息:

"The xcode-select command requires the command line in 
developer tools. Would you like install the tools now?" 

with the options "Get Xcode", "not now" & "Install". When I choose install, a "Finding Software" loading bar runs through but then ends with the following message:

使用选项“获取 Xcode”、“不是现在”和“安装”。当我选择安装时,“查找软件”加载栏会运行,但以以下消息结束:

"can't install the software because it is not currently 
available from the software update server"

The solution hereclearly did not work for me.

这里的解决方案显然对我不起作用。

回答by neverpanic

The other answerin the thread you linked is one of the possible solutions. It seems the installer will also display this message if your Command Line Tools are current and there are no updates available.

您链接的线程中的另一个答案是可能的解决方案之一。如果您的命令行工具是最新的并且没有可用更新,安装程序似乎也会显示此消息。

To check whether this is the case for you, check whether /usr/lib/tclConfig.shexists on your system. Only the Command Line Tools contain this file on Mavericks, so if you have it, you also have the Command Line Tools installed.

要检查您是否属于这种情况,请检查/usr/lib/tclConfig.sh您的系统上是否存在。在 Mavericks 上只有命令行工具包含这个文件,所以如果你有它,你也安装了命令行工具。