A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

我在网上找不到Command Line Tools,没法在终端编译C语言程序怎么办

10 个回复

倒序浏览
你的是什么版本的OSX?如果是10.9及以后的,必须在AppStore里面下载安装
回复 使用道具 举报
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
回复 使用道具 举报
qiubaoyang 发表于 2014-12-12 11:01
1、在xcode下安装命令行工具,只需在命令行中输入即可:xcode-select --install

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

哦   我试试
回复 使用道具 举报
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
回复 使用道具 举报
你的xcode是什么版本的?
回复 使用道具 举报
qiubaoyang 发表于 2014-12-12 11:17
你的xcode是什么版本的?

刚刚看了是4.6.3{:3_50:}
回复 使用道具 举报
这个我就不知道了,我用的是xcode5.1版本的
回复 使用道具 举报
qiubaoyang 发表于 2014-12-12 11:29
这个我就不知道了,我用的是xcode5.1版本的

哦  我在升级。。。
回复 使用道具 举报
时振 中级黑马 2014-12-13 15:41:40
10#
我有http://pan.baidu.com/s/1eQEgb6a
回复 使用道具 举报
时振 发表于 2014-12-13 15:41
我有http://pan.baidu.com/s/1eQEgb6a

真是太感谢了{:3_53:}
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马