黑马程序员技术交流社区

标题: 【求助】我在网上找不到Command Line Tools [打印本页]

作者: 钟楼上的猫    时间: 2014-12-11 19:53
标题: 【求助】我在网上找不到Command Line Tools
我在网上找不到Command Line Tools,没法在终端编译C语言程序怎么办

作者: 邓明    时间: 2014-12-12 08:45
你的是什么版本的OSX?如果是10.9及以后的,必须在AppStore里面下载安装
作者: qiubaoyang    时间: 2014-12-12 11:01
1、在xcode下安装命令行工具,只需在命令行中输入即可:xcode-select --install

2、执行命令出现xcrun:error:active developer path (“/Volumes/Xcode/Xcode.app/Contents/Developr”) does not exist ,use xcode-select  to change,也只需在命令行中输入一条命令即可:sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
作者: 钟楼上的猫    时间: 2014-12-12 11:10
qiubaoyang 发表于 2014-12-12 11:01
1、在xcode下安装命令行工具,只需在命令行中输入即可:xcode-select --install

2、执行命令出现xcrun:err ...

哦   我试试
作者: 钟楼上的猫    时间: 2014-12-12 11:11
qiubaoyang 发表于 2014-12-12 11:01
1、在xcode下安装命令行工具,只需在命令行中输入即可:xcode-select --install

2、执行命令出现xcrun:err ...

xcode-select: Error: unknown command option '--install'.

xcode-select: Report or change the path to the active
              Xcode installation for this machine.
出现这个{:3_49:}
Usage: xcode-select --print-path
           Prints the path of the active Xcode folder
   or: xcode-select --switch <xcode_path>
           Sets the path for the active Xcode folder
   or: xcode-select --version
           Prints the version of xcode-select
作者: qiubaoyang    时间: 2014-12-12 11:17
你的xcode是什么版本的?
作者: 钟楼上的猫    时间: 2014-12-12 11:24
qiubaoyang 发表于 2014-12-12 11:17
你的xcode是什么版本的?

刚刚看了是4.6.3{:3_50:}
作者: qiubaoyang    时间: 2014-12-12 11:29
这个我就不知道了,我用的是xcode5.1版本的

作者: 钟楼上的猫    时间: 2014-12-12 11:35
qiubaoyang 发表于 2014-12-12 11:29
这个我就不知道了,我用的是xcode5.1版本的

哦  我在升级。。。
作者: 时振    时间: 2014-12-13 15:41
我有http://pan.baidu.com/s/1eQEgb6a
作者: 钟楼上的猫    时间: 2014-12-13 18:12
时振 发表于 2014-12-13 15:41
我有http://pan.baidu.com/s/1eQEgb6a

真是太感谢了{:3_53:}




欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2