LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: 自由飞翔

chroot后用不了命令 相关 !![gcc}

[复制链接]
发表于 2003-7-7 12:00:07 | 显示全部楼层
LFS FAQ
7.1.1.  No such file or directory

Examples of this error are:

/usr/bin/env: /static/bin/bash: No such file or directory
gcc: No such file or directory
They usually occur when trying to enter (or shortly after entering) chroot in Chapter 6, and are caused by trying to run a dynamically linked binary at that point. You can check by running file on the binary. For example:

file $LFS/static/bin/bashIf it doesn't say something about "statically linked", there is a problem.

The solution is to go back to Chapter 5, delete and re-extract the source if you haven't already, and recompile the affected package. And this time, take extra care with the instructions for compiling it statically.
发表于 2003-7-7 16:14:06 | 显示全部楼层
呵呵,现在不能用静态与否来判断了,现在的lfs只有前两个软件包是静态连接的,而后面会再动态编译这两个软件包,所以第五章里就基本全是动态连接的了。主要是因为glibc版本不一样的情况下,静态连接问题比较多。
目前lfs-cvs的方法是基于pure lfs hint,出问题的可能是在锁定glibc,
make -C ld install-data-local
这个命令是要在binutils-build目录下执行才行的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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