Open 1374250553 opened 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
/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
[root@redhat diagnose-tools]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.8 (Maipo)
同样的问题,求解惑~
没装内核开发包,安装一下就行了
https://unix.stackexchange.com/questions/215694/empty-kernel-directory-but-kernel-headers-are-installed
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)