LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 751|回复: 4

LFS - kernel head building error

[复制链接]
发表于 2003-5-16 16:40:07 | 显示全部楼层 |阅读模式
Error as following:
-------------------
I have no name!:/build/linux-2.4.20# make include/linux/version.h
/bin/sh: line 1: /dev/null: Permission denied
/bin/sh: line 1: /dev/null: Permission denied
KERNELRELEASE "2.4.20" exceeds 64 characters
make: *** [include/linux/version.h] Error 1
I have no name!:/build/linux-2.4.20# make include/linux/version.h
/bin/sh: line 1: /dev/null: Permission denied
/bin/sh: line 1: /dev/null: Permission denied
KERNELRELEASE "2.4.20" exceeds 64 characters
make: *** [include/linux/version.h] Error 1
-------------------
When tried as root with a new shell without chroot, then turned out ok.
-------------------
[root@lebu linux-2.4.20]# cat include/linux/version.h
#define UTS_RELEASE "2.4.20"
#define LINUX_VERSION_CODE 132116
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
------------------
What's funny here?
 楼主| 发表于 2003-5-16 16:45:13 | 显示全部楼层
BTW, why the complier always complain about "/bin/sh: line 1: /dev/null: Permission denied" ?
Everything I did was step by step according to LFS v4.1
-------------------------
I have no name!:/build/linux-2.4.20# ls -l /dev/null
crw-rw-rw-    1 0        0          1,   3 May 16 06:34 /dev/null
发表于 2003-5-16 16:50:02 | 显示全部楼层
你有没有/bin/sh文件呢?
ls -l /bin/sh
 楼主| 发表于 2003-5-16 16:53:04 | 显示全部楼层
Sure. I have compiled some other packages already.
发表于 2003-5-16 16:57:31 | 显示全部楼层
我不知道是哪里的问题,可能是/etc/mtab 什么的没有设置对.
这个版本的LFS 我没有装过,所以问题搞得不太清楚.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表