LinuxSir.cn,穿越时空的Linuxsir!

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

麻烦班主进来看看.

[复制链接]
发表于 2004-12-1 14:16:34 | 显示全部楼层 |阅读模式
lfs:~$ cd /mnt/lfs/sources
lfs:/mnt/lfs/sources$ tar xvfj binutils-2.14.tar.bz2
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
竟然不能解压文件.why???????
发表于 2004-12-1 15:25:51 | 显示全部楼层
是不是已经有解开好了的目录存在呀。
binutils-2.14这个目录呢?
 楼主| 发表于 2004-12-1 20:18:00 | 显示全部楼层
用别的用户能解压缩,奇怪?
 楼主| 发表于 2004-12-1 20:21:15 | 显示全部楼层

帮忙.

lfs:~$ cd /mnt/lfs/sources/binutils-2.14
lfs:/mnt/lfs/sources/binutils-2.14$ mkdir ../binutils-build
lfs:/mnt/lfs/sources/binutils-2.14$ cd ../binutils-build
lfs:/mnt/lfs/sources/binutils-build$ ../binutils-2.14/configure --prefix=/tools --disable-nls
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
gcc: installation problem, cannot exec `as': Too many levels of symbolic links
*** The command 'gcc -o conftest -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
 楼主| 发表于 2004-12-1 20:28:31 | 显示全部楼层
把这句改了竟然成功
lfs:/mnt/lfs/sources/binutils-build$ cat > ~/.bashrc << "EOF"
> set +h
> umask 022
> LFS=/mnt/lfs
> LC_ALL=POSIX
> PATH=/usr/bin:/bin:/tools/bin
> export LFS LC_ALL PATH
> EOF
lfs:/mnt/lfs/sources/binutils-build$ source ~/.bash_profile
lfs:/mnt/lfs/sources/binutils-build$ ../binutils-2.14/configure --prefix=/tools --disable-nls
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... objdump
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile
这对以后有害吗?????
 楼主| 发表于 2004-12-1 20:29:43 | 显示全部楼层
PATH=/usr/bin:/bin:/tools/bin
发表于 2004-12-2 08:42:45 | 显示全部楼层
按照文档来的话才是对的。
因为文档中使用:
[php]
PATH=/tools/bin:/usr/bin:/bin
[/php]
是基于考虑:
让新编译安装成功的环境可以马上就投入使用中。
你这是进行到第5章的哪一次binutils的编译呢?是第一次还是第二次?
如果是第一次,那么也就是说你的/tools/里面已经有了上一次你没有做成功的东西留着,需要清除那么些东西。
发表于 2004-12-2 08:48:58 | 显示全部楼层
你如果进行了一次没有完全的编译,或者是在半途发现出错了以后,得重新将/tools/下面的东西全部给删除了,然后再重新做,不然的话它会引用了/tools下面的东西,所以就引起了编译、连接的库、.....等等问题。
  要使用一个清楚的环境,而不是杂着别次的东西,又有一些其它的什么不成功的库之类的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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