1. 程式人生 > >MAC OS 如何安裝命令列工具:Command Line Tools

MAC OS 如何安裝命令列工具:Command Line Tools

開啟終端輸入:xcode-select --install 回車

安裝好了測試結果:gcc -v

顯示如下:

xcode-select: note: install requested for command line developer tools

apple-1tekiiMac:~ apple-1$ gcc -v

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1

Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)

Target: x86_64-apple-darwin14.3.0

Thread model: posix