LinuxSir.cn,穿越时空的Linuxsir!

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

LFS 6.3 进度 6.7.1. Installation of Linux API Headers 错误, 请大家帮我看看

[复制链接]
发表于 2007-10-23 19:00:58 | 显示全部楼层 |阅读模式
sed -i '/scsi/d' include/Kbuild
请问当前目录是/sources/linux-2.6.22.5么?

root:/sources/linux-2.6.22.5# sed -i '/scsi/d' include/Kbuild
root:/sources/linux-2.6.22.5# make mrproper
root:/sources/linux-2.6.22.5# make headers_check
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  HOSTCC  scripts/basic/fixdep
gcc: error trying to exec '/tools/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/as': execv: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

exec '/tools/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/as': execv: No such file or directory
        这什么意思,/tools/i686-pc-linux-gnu/bin/as是存在的啊。我是新手,还望老鸟们不厌其烦。谢谢,呵呵。

好慢阿,发重了的话请admin删除,谢谢。
 楼主| 发表于 2007-10-23 19:05:52 | 显示全部楼层
http://www.linuxquestions.org/qu ... api-headers-585191/
这个人说

Quote:
Originally Posted by martinwprior View Post
The following command : sed -i '/scsi/d' include/Kbuild
In which directory is this run?
You should already be in the root (/) directory and have been running your installation from here so far.
怎么是/下执行呢?怎么个意思啊到底。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-23 19:55:38 | 显示全部楼层
大伙都不在呀? 紧急求助啊。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-23 20:44:21 | 显示全部楼层
gcc的问题么? 我试了 make都会出现上面的错误。 为什么会这样, 问题出在哪步呢? 我确定没有一个字敲错。 大家说说问题会出在哪? 绝对不想再重新编译了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-23 21:24:37 | 显示全部楼层
或许是开始的stripping出了问题?
只有重新build一次了。汗。
回复 支持 反对

使用道具 举报

发表于 2007-10-23 21:31:03 | 显示全部楼层
如果不是很熟,stripping之前最好是先备份。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-23 22:33:50 | 显示全部楼层
恩 知道了 下次就有经验了。
现在可以肯定是stripping那步的问题咯。

没关系,总是需要慢慢摸索的。呵呵。
回复 支持 反对

使用道具 举报

发表于 2007-10-23 22:38:21 | 显示全部楼层
不行就重新解源文件来,俺现在用jhalfs自动搞,呵呵
回复 支持 反对

使用道具 举报

发表于 2007-10-25 09:46:21 | 显示全部楼层
我觉得是不是第五章的工具链接没调整好啊~

现在懒了,自从自己完整手动过几遍LFS以后,后来一直用jhalfs了~
回复 支持 反对

使用道具 举报

发表于 2007-10-27 04:52:20 | 显示全部楼层
引自 http://www.linuxfromscratch.org/ ... strippingagain.html
If disk space is very tight, the --strip-all option can be used on the binaries in /{,usr/}{bin,sbin} to gain several more megabytes. Do not use this option on libraries—they will be destroyed.

關於 stripping,手冊說過對 library 不能用 --strip-all
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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