在安装Xcode开发环境的过程中,会把常用的一些编译器都覆盖到,gcc等也在其中。

可是安装完毕后,并不能直接通过ternimal终端窗口使用命令行执行gcc,提示command not found。

解决方案:需要在Xcode的设置中安装Command Line Tools组件,才能支持命令行使用。

具体操作:Xcode –> Preferences –> Downloads 的Components下,安装Command Line Tools 即可。

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2021-05-28
  • 2021-05-31
  • 2021-08-15
  • 2021-12-28
  • 2022-02-07
猜你喜欢
  • 2021-06-07
  • 2021-04-05
  • 2021-10-20
  • 2022-02-02
  • 2021-12-05
相关资源
相似解决方案