|
我看了论坛上各个前辈的编译经验后,自己也上 http://www.kernel.org/下载了最新的 linux-2.5.44.tar.bz2 【18-Oct-2002 21:10 28.6M 】和patch-2.5.44.bz2 【18-Oct-2002 21:10 384k】,都存放到 /usr/src 下!
地址: http://www.kernel.org/pub/linux/kernel/v2.5/
然后安装论坛所说的:
--------------------------------------------
1. bzip2 -dc linux-2.5.44.tar.bz2
2. tar -xvf linux-2.5.44.tar 【159.5M】
3. ln -s linux-2.5.44 linux-2.5
---------------------------------------------
4. cd /usr/include
5. rm -rf asm linux scsi
6. ln -s /usr/src/linux-2.5/include/asm-i386 asm
7. ln -s /usr/src/linux-2.5/include/linux linux
8. ln -s /usr/src/linux-2.5/include/scsi scsi
---------------------------------------------------------
9. cd /usr/src/
10. 应用补丁:bzip2 -dc patch-2.5.44.bz2 | patch -p0
出现如下信息:
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru a/CREDITS b/CREDITS
|--- a/CREDITS Fri Oct 18 21:03:07 2002
|+++ b/CREDITS Fri Oct 18 21:03:07 2002
--------------------------
File to patch:
因为不明白是什么意思,所以我就Ctrl+C给取消了,继续进行下一步
-----------------------------------------------------------
11. cd linux-2.5
12. make mrproper
13. make xconfig 这个用不了,改用 make menuconfig
------------------------------------
14. make dep
这一步时候,就开始出现错误了
make -f scripts/Makefile
gcc -Wp,-MD,scripts/.split-include.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
In file included from /usr/include/linux/errno.h:4,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from scripts/split-include.c:26:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
make[1]: *** [scripts/split-include] Error 1
make: *** [scripts] Error 2
由于出现这样的问题,我就没又继续进行下去了
所以在此想请教大家,这两个错误是什么意思,改如何解决!
谢谢
------ 陌生东东 2002.10.20 |
|