打开终端输入: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

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2021-09-19
  • 2021-10-19
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案