如果是redhat的话
大部分都在/usr/include
http://blog.csdn.net/ysdaniel/article/details/7043298
大部分都在/usr/include
还有一部分在/usr/lib/**下。
例如:查找 stropts.h存放何处:
[root@localhost sys]# locate stropts.h
/usr/lib/i686-redhat-linux5E/include/stropts.h
/usr/lib/i686-redhat-linux5E/include/bits/stropts.h
/usr/lib/i686-redhat-linux5E/include/sys/stropts.h
/usr/share/man/man0p/stropts.h.0p.gz
编译时,如果缺少stropts.h,可将查找到的stropts.h存放到环境变量中的/usr/include下,再编译还有可能会提示少文件这是因为stropts中又包含了其它的头文件导致的,这时只需要把相应的头文件拷到/usr/include中对应的目录中即可。
PS:查找Linux文件 存放在哪(地点) ,请使用locate find whereis which 命令,可参考: