|
发表于 2004-2-18 12:49:23
|
显示全部楼层
最初由 阿罗 发表
可能是你不够仔细,LFS4.0才是这样的。LFS5.0是
#chroot $LFS /tools/bin/env......。LFS4.0创建工具的目录是$LFS/static...
估计你看错链接了。
这里要修正一下,既然是chroot,那么就不应该用宿主系统的路径,而是新的root文件系统的路径。那个env命令是新root的程序,所以/static就对了,而非$LFS/static。
另外,动态程序以及静态程序的chroot有所不同。
man chroot
- Here are a few tips to help avoid common problems in using chroot.
- To start with a simple example, make COMMAND refer to a statically
- linked binary. If you were to use a dynamically linked executable, then
- you'd have to arrange to have the shared libraries in the right place
- under your new root directory.
复制代码 |
|