One - One Code All

Blog Content

macbook 编译时出现stdio.h file not found 的解决办法,use Software Update to install updates

Linux-Mac   2019-02-28 23:51:04



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



上一篇:Mac 上 brew 安装Tomcat
下一篇:系统命令执行python安装包gunicorn,uwsgi

The minute you think of giving up, think of the reason why you held on so long.