LinuxSir.cn,穿越时空的Linuxsir!

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

构建BLFS进入不了虚拟环境?

[复制链接]
发表于 2002-11-30 18:00:12 | 显示全部楼层 |阅读模式
出现情况如下:
[root@SZwl root]# chroot $LFS /bin/env -i \
> HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
> PATH=/bin:/usr/bin:/sbin:/usr/sbin: \
> CC='gcc -s' \
> CHOST="i686-pc-linux-gnu" \
> CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args" \
> CXXFLAGS="${CFLAGS}" \
> /bin/bash --login
chroot: 無法執行 /bin/env: No such file or directory
[root@SZwl root]#
这是什么原因?
发表于 2002-11-30 18:04:53 | 显示全部楼层
把/static/bin下的env cp到/bin下面就可以了
发表于 2002-11-30 18:05:45 | 显示全部楼层
/bin/env变成/usr/bin/env
你可以用命令:
whereis env
其他的命令也可以这样来找
 楼主| 发表于 2002-11-30 19:16:21 | 显示全部楼层

是的

现在已经进入了,但安装LIBFAM时出错:
make[3]: Entering directory `/usr/src/blfs/fam-2.6.9'

**********************************************************************
Configuration changes to rpc have not been made
automatically because there appears to be a conflict between the
file's current contents and the lines which would have been added.

Original file: /etc/rpc
New file:      /etc/rpc.N

Please compare these two files and update the original file as needed.
**********************************************************************

Couldn't find inetd.conf in /etc /usr/etc /usr/local/etc
make[3]: [install-exec-hook] Error 2 (ignored)
Restarting inetd...
inetd: no process killed
make[3]: [install-exec-hook] Error 1 (ignored)
make[3]: Leaving directory `/usr/src/blfs/fam-2.6.9'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/blfs/fam-2.6.9'
make[1]: Leaving directory `/usr/src/blfs/fam-2.6.9'
 楼主| 发表于 2002-11-30 19:20:35 | 显示全部楼层
真可以?S略吗?
 楼主| 发表于 2002-11-30 19:37:32 | 显示全部楼层

另外

在LFS安装时留下的包如tar bash可以扔掉吗?
发表于 2002-11-30 20:49:50 | 显示全部楼层
可以忽略的,呵呵。你说的要扔掉的是/static下的么?我是已经删了,不过在删之前,我备份了一下,以后还可以用。
 楼主| 发表于 2002-11-30 20:59:18 | 显示全部楼层

多谢TRAM兄弟

我现在编到libungif-4.1.0b1出现错误,根据它的提示要删除第14行的#include (If you get an error during the make portion compiling lib/qprintf.c, edit the file and comment out or remove line 14: #include <config.h>)怎么删除啊!出错提示如下:

printf.c: In function `GifQprintf':
qprintf.c:42: `va_start' used in function with fixed args
make[2]: *** [qprintf.lo] Error 1
make[2]: Leaving directory `/usr/src/blfs/libungif-4.1.0b1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/blfs/libungif-4.1.0b1'
make: *** [all-recursive-am] Error 2
发表于 2002-11-30 21:08:44 | 显示全部楼层
对啊,你就照它说的,找到文件,用vi打开,删了就好了。我也删了的。
 楼主| 发表于 2002-11-30 21:12:13 | 显示全部楼层
我不知找谁去删,在它的包里和/LIB目录下都没有qprintf.c,config.h里没有#include
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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