OS X 10.9 Mavericks下如何安装Command Line Tools(命令行工具)

本文详细介绍了如何在Mac OS X上安装GCC编译器,包括使用命令行工具安装GCC和验证安装成功的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考1:http://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/

参考2:http://blog.licess.org/how-to-install-command-line-tools-in-osx-10-9-mavericks/


1.安装命令:xcode-select --install

chendeiMac:~ chendaer$ xcode-select --install
2.安装完成:gcc -v 命令查看gcc的版本

chendeiMac:~ chendaer$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
chendeiMac:~ chendaer$ 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值