CentOS7编译错误:fatal error: sys/type.h: No such file or directory find /usr/include/sys -name type* 发现存在一个叫做types.h的头文件;将type.h 替换成types.h:编译通过