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

来源:互联网 发布:阿里云制作服务器镜像 编辑:程序博客网 时间:2024/05/19 06:39

参考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 -vConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)Target: x86_64-apple-darwin13.0.0Thread model: posixchendeiMac:~ chendaer$ 


0 0
原创粉丝点击