Closed rexel-cn closed 2 years ago
找到原因了,是由于我采用的是离线安装,我的rpm依赖包中遗漏了kernel-headers-3.10.0-862.el7.x86_64.rpm。目前我使用的离线安装包包括以下: binutils-2.27-27.base.el7.x86_64.rpm kernel-3.10.0-862.el7.x86_64.rpm kernel-headers-3.10.0-862.el7.x86_64.rpm cpp-4.8.5-28.el7.x86_64.rpm libgcc-4.8.5-28.el7.x86_64.rpm gcc-4.8.5-28.el7.x86_64.rpm libgomp-4.8.5-28.el7.x86_64.rpm gcc-c++-4.8.5-28.el7.x86_64.rpm libmpc-1.0.1-3.el7.x86_64.rpm glib2-2.54.2-2.el7.x86_64.rpm libstdc++-devel-4.8.5-28.el7.x86_64.rpm glib2-devel-2.54.2-2.el7.x86_64.rpm mpfr-3.1.1-4.el7.x86_64.rpm glibc-devel-2.17-222.el7.x86_64.rpm zlib-1.2.7-17.el7.x86_64.rpm glibc-headers-2.17-222.el7.x86_64.rpm
在编译的时候报错,请问如何解决? [root@vm1 libfastcommon-1.0.43]# ./make.sh cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o hash.o hash.c
In file included from /usr/include/errno.h:35:0, from hash.c:12: /usr/include/bits/errno.h:24:26: fatal error: linux/errno.h: No such file or directory -# include <linux/errno.h> ^ compilation terminated. make: *** [hash.o] Error 1