然后在CentOS6.4的/usr/include/里面没有找到netinet/in.h头文件,但是发现有一个netinet目录,里面包含: ether.h,icmp.h, if_ether.h,if_fddi.h, if_tr.h,igmp.h,in.h, in_systm.h, ip6.h,ip.h, ip_icmp.h,tcp.h,udp.h这些头文件,该如何解决没有netinet/in.h的问题?
2 个解决方案
#1
是不是缺少dev版的一些包?
#2
glibc-headers-2.12-1.149.el6_6.9.x86_64 : Header files for development using
: standard C libraries.
Repo : updates
Matched from:
Filename : /usr/include/bits/in.h
Filename : /usr/include/netinet/in.h
make sure you have glibc-devel and glibc-headers installed
: standard C libraries.
Repo : updates
Matched from:
Filename : /usr/include/bits/in.h
Filename : /usr/include/netinet/in.h
make sure you have glibc-devel and glibc-headers installed
#1
是不是缺少dev版的一些包?
#2
glibc-headers-2.12-1.149.el6_6.9.x86_64 : Header files for development using
: standard C libraries.
Repo : updates
Matched from:
Filename : /usr/include/bits/in.h
Filename : /usr/include/netinet/in.h
make sure you have glibc-devel and glibc-headers installed
: standard C libraries.
Repo : updates
Matched from:
Filename : /usr/include/bits/in.h
Filename : /usr/include/netinet/in.h
make sure you have glibc-devel and glibc-headers installed