2014-03-30 17 views
1

我已经安装在我的MacBook(运行OSX 10.9.2小牛)Github的Mac应用程序后,我试图在终端上键入git的,并会出现一个消息,说:Git和Github Mac App不兼容?

xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools. 

我已经也已经从Github Mac应用程序首选项中安装了“命令行工具”。 那么,这是什么问题? 为什么我不能一起使用“git”终端命令和Github Mac客户端应用程序? 我在网上搜索解决方案,但任何人都可以解决我的问题。

+0

所以http://panic.com/qa/discussion/comment/353#Comment_353我前面提到的(http://stackoverflow.com/questions/11872760/using -git-from-the-command-line-after-install-github-for-mac/16664015#comment34649529_16664015)没有帮助? – VonC

+0

它没有:|问题仍然存在...... – trullallero

回答

1

尝试运行xcode-select --install

据我所知,命令行工具是编译器和开发所需的其他工具。在Xcode 5之前,您曾经必须下载Xcode并在Xcode的首选项中选择“安装命令行工具”(或使用上面列出的命令)。

编辑:校正安装标志语法

+0

是您提到的“命令行工具”,与Github mac应用程序建议安装的“命令行工具”相同? – trullallero

+0

我不使用GitHub客户端,因此我不知道它可能安装哪些工具。但是,您收到的错误消息表明您需要'xcode-select install'。你尝试过吗? – imbric

+0

是的,它失败了。该消息将出现:“打印或改变到活动显影剂目录的路径,此目录哪些工具被用于Xcode的命令行工具 控件(例如, xcodebuild联编)以及BSD的发展命令(如CC和作出。 )“。 – trullallero