macbook 编译时出现stdio.h file not found 的解决办法
1、首先检查开头没有漏写#include
2、未安装 Command Line Tools命令行工具,安装步骤如下:
在终端中输入 xcode-select --install,按提示安装完成后,重启终端即可。
错误记录:xcode-select: error: command line tools are already installed, use "Software Update" to install
在执行
$ xcode-select --install
后出现错误
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
解决办法:
$ rm -rf /Library/Developer/CommandLineTools
$ xcode-select --install
问题完美解决
如果提示权限不够那么加上sudo