我想在OSX 10.9 Mavericks上安装CLT。OSX 10.9上的命令行工具:已安装,但无法显示?
我问之前,我提到了这些questons:
Failed to install command line tools on OSX Mavericks
Xcode 4.4 and later install Command Line Tools
我通过在App Store安装的XCode 5,与最新版本。
然后,如各种教程中提到,我在bash中键入“Xcode的选--install”,然而,任何窗口,告诉我安装CLI,但是这些投入并不:
$ xcode-select --install
Usage: xcode-select -print-path
or: xcode-select -switch <xcode_folder_path>
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
我试着手动运行"/System/Library/CoreServices/Install\ Command\ Line\ Developer\ Tools.app"
,但没有显示出来。
我打开包,并试图
"sudo /System/Library/CoreServices/Install\ Command\ Line\ Developer\ Tools.app/Contents/MacOS/Install\ Command\ Line\ Developer\ Tools "
并未能像这样:
"2013-11-01 19:48:45.060 Install Command Line Developer Tools[42474:507] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x6207, name = 'com.apple.dt.CommandLineTools.installondemand'
See /usr/include/servers/bootstrap_defs.h for the error codes."
我启用了root帐户,并尝试在根下,相同的输出运行它。
的是什么意思不明,我试图"--pkg-info=com.apple.pkg.DeveloperToolsCLI"
看来,CLI不能正常工作,输出是:
"No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'."
我去苹果的网站,下载并安装此文件:
command_line_tools_os_x_mavericks_for_xcode__late_october_2013.dmg
一切顺利,在安装过程中没有错误报告。
但是,当我尝试在XCode中查找CLI时,它不在那里。
还有一次"--pkg-info=com.apple.pkg.DeveloperToolsCLI", still "No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.".
现在我完全摸不着头脑...我怎样才能安装此CLI?
非常感谢您提前。
你期望在XCode中显示什么? – duskwuff
我期待CLI会出现在“下载”中,而不是。 –
Xcode CLI工具不再通过Xcode下载,因此它们不会在其下载管理器中显示。我怀疑你已经安装了它们,但你还没有意识到它!尝试从终端运行'cc'。 – duskwuff