LinuxSir.cn,穿越时空的Linuxsir!

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

安装进行到:chroot 安装基本的系统软件

[复制链接]
发表于 2002-12-5 09:28:52 | 显示全部楼层 |阅读模式
这两天有点忙,昨晚装到了----安装基本的系统软件. 本来可以装下去的,但是出了点错,没有查就睡觉了,今天来一看,好象是命令打错了:

(我昨晚打的命令)
chroot $LFS/static/bin/env -i \
    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
    /static/bin/bash --login

出了个错,说我的目录不存在.我看了一下,没有env这个目录.我今天一看,chroot $LFS后面有个空格,是不是这个原因呢?

各个兄弟,后面还没什么地方要小心的,有地雷的,请提前通知一下,谢谢了!
发表于 2002-12-5 09:31:52 | 显示全部楼层
$LFS must be followed by a space. and you should have the bin program "env" in your /static/bin
if not, return back charpter 5, recompile a xxxxutil pack.
 楼主| 发表于 2002-12-5 09:36:58 | 显示全部楼层
Thank you for your answers. I would just like to know if there are any steps needed to take care in the future?
 楼主| 发表于 2002-12-5 09:40:51 | 显示全部楼层
More questions:

What does the PS1='\u:\w\$ 'mean in this command?
发表于 2002-12-5 09:41:11 | 显示全部楼层
some packs can't be compiled with the optimization CFLAGS and blabla, check with tram's blfs installation note very very carefully.

if you add some mistakes on this point, the strange problems will occure days after and drive you on to the wall.
发表于 2002-12-5 09:42:27 | 显示全部楼层
try it anywhere and
try PS1="hahahaha"
see what happen?
发表于 2002-12-5 09:42:55 | 显示全部楼层
我觉得你装到这一步的话,应该要出的问题都出了,只要注意一下glibc就行了。那可是个大户,装不好后面的都白费。
发表于 2002-12-5 09:44:07 | 显示全部楼层
sorry,你是已经装好了LFS,要装BLFS是么?
 楼主| 发表于 2002-12-5 09:53:29 | 显示全部楼层
呵呵,还没有. 只到了要用chroot 这个命令的时候了.请多指导!
发表于 2002-12-5 09:57:45 | 显示全部楼层
不敢当啊,呵呵,出了问题就把出错的情况给大家说说,人多力量大!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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