alibaba / diagnose-tools

GNU General Public License v3.0
395 stars 166 forks source link

Redhat7.8编译不通过 #125

Open 1374250553 opened 3 years ago

1374250553 commented 3 years ago

cd SOURCE/module; make --jobs=1 make[1]: Entering directory /software/diagnose-tools/SOURCE/module' make CFLAGS_MODULE="-DMODULE -DCENTOS_7U -DCENTOS_3_10_1127" -C /lib/modules/3.10.0-1127.el7.x86_64/build M=/software/diagnose-tools/SOURCE/module modules make: Entering an unknown directory make: *** /lib/modules/3.10.0-1127.el7.x86_64/build: No such file or directory. Stop. make: Leaving an unknown directory make[1]: *** [default] Error 2 make[1]: Leaving directory/software/diagnose-tools/SOURCE/module' make: *** [module] Error 2

[root@redhat diagnose-tools]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.8 (Maipo)

imshi commented 3 years ago

同样的问题,求解惑~

  1. 编译安装环境一:系统版本:CentOS 7.4 内核版本:3.10.0-693.2.2.el7.x86_64
  2. 编译安装环境一:系统版本:CentOS 7.9 内核版本:3.10.0-1160.11.1.el7.x86_64
imshi commented 3 years ago

没装内核开发包,安装一下就行了

834810071 commented 2 years ago

https://unix.stackexchange.com/questions/215694/empty-kernel-directory-but-kernel-headers-are-installed