从App Store上下载的Xcode,默认是不会安装Command Line Tools的,Command Line Tools是在Xcode中的一款工具,可以在命令行中运行C程序。

在终端中输入命令

xcode-select --install

会弹出提示框

选择同意协议

安装中

安装完成后,在终端中执行gcc -v命令查看是否安装成功。
如果显示如下内容,则按照成功。

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.
Apple LLVM version 8.1. (clang-802.0.)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

参考地址

最新文章

  1. 更新过程 renewal process
  2. centos7 最小化安装没有ifconfig及修改网卡名enoxxx为ethX
  3. SharePoint Error - An unrecognized HTTP response was received when attempting to crawl this item
  4. 5.1---二进制数插入(CC150)
  5. php面试题之五——PHP综合应用(高级部分)
  6. java获取本机IP地址
  7. 数据库笔记--常见sql操作
  8. [原]打造Python开发环境之初篇
  9. 使用JSP处理用户注册和登陆
  10. 【Mysql学习笔记】浅析mysql的binlog
  11. 实战weblogic集群之创建domain,AdminServer
  12. python 学习源码练习(2)——简单文件读取
  13. Spring邮件发送1
  14. c#基础小练习
  15. Ubuntu使用命令行打印文件
  16. linux 学习笔记 groupadd创建组
  17. Android Studio 3.1 正式版
  18. iframe 通信问题
  19. OpenSL的代码编写
  20. Oracle EBS 数据访问权限集

热门文章

  1. springboot整合mybatis(注解)
  2. vuex-class用法
  3. 史上最详 Thymeleaf 使用教程
  4. .Net基础篇_学习笔记_第四天_if结构
  5. 从 secondarynamenode 中恢复 namenode
  6. Python集训营45天—Day04 (函数)
  7. Codeforces Round #585 (Div. 2)
  8. Day 25 网络基础2
  9. 01 (H5*) Vue第一天
  10. 使用命令行创建maven web项目