我正在使用微型Core,并试图安装Vmware工具,当然这些工具需要内核头:-)。
看起来它们在包中没有现成的内核头,但是它们确实有内核源代码。因此,我下载了该源代码,并试图从其中创建标题,但我不知道自己在做什么。
在我的谷歌搜索中,听起来像是:
make headers_install可能会做我需要它做的事情,这实际上是一个正确的目标,但是它错误地告诉了我以下几点:
tc@box:/usr/src/linux-3.16.6$ make headers_install
CHK include/generated/uapi/linux/version.h
HOSTCC arch/x86/tools/relocs_32.o
In file included from arch/x86/tools/relocs_32.c:1:0:
arch/x86/tools/relocs.h:17:32: fatal error: tools/le_byteshift.h: No such file or directory
#include <tools/le_byteshift.h>
^
compilation terminated.
scripts/Makefile.host:134: recipe for target 'arch/x86/tools/relocs_32.o' failed
make[1]: *** [arch/x86/tools/relocs_32.o] Error 1
arch/x86/Makefile:181: recipe for target 'archscripts' failed
make: *** [archscripts] Error 2我是不是走在了正确的轨道上,只是失去了依赖,还是完全走错了轨道?
有人能给我指点下一步该怎么做吗?它看起来像是"tools/le_byteshift.h“,但我不知道从哪里开始分离出哪一个包才能使它正常工作。
如何从源代码中生成内核头?任何指点都非常感谢!
https://unix.stackexchange.com/questions/205607
复制相似问题