我正在尝试使用此Klips capable version of OpenSwan构建guide,其中它类似于
make KERNELSRC=/lib/modules/`uname -r`/build module
它给出了输出
KLIPS26 module built successfully.
ipsec.ko is in /home/naruto/Downloads/Openswan-master/modobj26
-rw-r--r-- 1 root root 11662573 Feb 20 10:32 ipsec.ko
text data bss dec hex filename
367195 15808 8244 391247 5f84f ipsec.ko
use make minstall as root to install it
但是当我跑步时
make KERNELSRC=/lib/modules/`uname -r`/build install minstall
它给了我
make[3]:/usr/src/kernels/2.6.32-504.8.1.el6.x86_64/Documentation/DocBook/Makefile:No such file or directory
make[3]: *** No rule to make target/usr/src/kernels/2.6.32-504.8.1.el6.x86_64/Documentation/DocBook/Makefile'Stop.
make[2]: *** [help] Error 2
我确实有/usr/src/kernels/2.6.32-504.8.1.el6.x86_64
,但/usr/src/kernels/2.6.32-504.8.1.el6.x86_64/Documentation/DocBook
不存在
如何将ipsec.ko
构建到内核中,PLZ指南
此致
答案 0 :(得分:1)
两个内核看起来与我不同。一个是2.6.18,另一个是2.6.32,你可能还需要kernel-devel