|||
--安装Xcode------------------------------------------------------------
检测是否安装好Xcode
$ xcode-select -p
显示这样说明安装好
/Applications/Xcode.app/Contents/Developer
如果没有装好,安装方法:
Xcode不同版本可以在以下网页下载,需要登陆apple帐户:
https://developer.apple.com/downloads/
Mac OS X 10.9.4 下载的Xcode 6.2版本
-----------------------------------------------------------------------------
--安装Xcode Command Line Tools---
1.调出安装窗口
$ xcode-select --install
2.点击 Install 安装
Click “Install” to download and install Xcode Command Line Tools.
3.查看安装的gcc版本
$ gcc --versionConfigured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)Target: x86_64-apple-darwin14.0.0
Thread model: posix
ABR:~ abREN$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s <path>, --switch <path> set the path for the active developer directory
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
参考地址:http://railsapps.github.io/xcode-command-line-tools.html
2015-11-17 15:47 @Brussels, Belgium
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-10-20 03:25
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社