LinuxSir.cn,穿越时空的Linuxsir!

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

tar 解压失败

[复制链接]
发表于 2006-10-3 18:07:57 | 显示全部楼层 |阅读模式
在第5章 构造工具链这里
先要解压的嘛,
然后我切换到lfs用户进行解压
tar -xvf binutils-2.16.1
然后提示
tar : bzip2:Cannot exec: Too many levels of symbolic links
tar: Error is not recoverable: exiting now
tar : Child returned status 2
tar:Error exit delayed from previous errors
我已经用chown把所有权交给lfs用户。所以应该不是权限问题。那么这是为什么?我Google了很久也没有找到答案,望告之。
但是我用root却可以解压。
发表于 2006-10-3 19:26:35 | 显示全部楼层
binutils-2.16.1?
是笔误还是什么?
binutils-2.16.1.tar.bz2
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-3 19:47:55 | 显示全部楼层
binutils-2.16.1.tar.bz2
笔误,不好意思
回复 支持 反对

使用道具 举报

发表于 2006-10-3 19:50:19 | 显示全部楼层
楼主是不是用的TAB键自动完成文件名的啊?如果是这样,这个文件名还没填完哦,后面应该还有.tar.bz2这几个字母吧
我也是新手,刚开始学习中……另外binutils-2.16.1.tar.bz2文件是不是在你执行命令的这个目录里?如果不是,应该要加上路径的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-3 20:00:02 | 显示全部楼层
我用的是tar xvf binutils-2.16.1.tar.bz2
同样的命令在root下可以成功解开,在lfs用户下不能
我想问一下,第五章构造工具链。编译工具的时候要以root还是以lfs编译呢?谢谢阿。我初学,也不太懂
回复 支持 反对

使用道具 举报

发表于 2006-10-4 11:07:29 | 显示全部楼层
手冊有說明在什麼時候用 lfs 用戶,啥時候用 root 的,請仔細閱讀!
回复 支持 反对

使用道具 举报

发表于 2008-12-24 10:33:00 | 显示全部楼层
sorry, i can't input chinese.
I also have this problem when i'm doing the lfs.
Finally i figure out the problem is my symbolic link is not right.
bash-3.2$ls -l /
the result show "tools -> /mnt/lfs/tools" with red color.
then i remove the the directory and create it again.
bash-3.2$mkdir -v $LFS/tools
bash-3.2$ln -sv $LFS/tools /
It works just ok.
Maybe you should check your PATH enviroment variable, see if there is
something wrong with the symbolic link.
回复 支持 反对

使用道具 举报

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

本版积分规则

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