LinuxSir.cn,穿越时空的Linuxsir!

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

LFS-6.3 Chapter6.9 Glibc在make install的时候出错

[复制链接]
发表于 2008-10-25 14:54:29 | 显示全部楼层 |阅读模式
我下的是最新的livecd.
lfslivecd-x86-6.3-r2145.iso

在第二次安装glibc的时候

运行make install,结果出现错误

  1. Execution of gcc failed!
  2. The script has found some problems with your installation!
  3. Please read the FAQ and the README file and check the following:
  4. - Did you change the gcc specs file (necessary after upgrading from
  5.   Linux libc5)?
  6. - Are there any symbolic links of the form libXXX.so to old libraries?
  7.   Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are wrong,
  8.   libm.so should point to the newly installed glibc file - and there should be
  9.   only one such link (check e.g. /lib and /usr/lib)
  10. You should restart this script from your build directory after you've
  11. fixed all problems!
  12. Btw. the script doesn't work if you're installing GNU libc not as your
  13. primary library!
  14. make[1]: *** [install] Error 1
  15. make[1]: Leaving directory `/sources/glibc-2.3.6'
  16. make: *** [install] Error 2
复制代码

请问问题出在哪?
该怎么解决呢?
谢谢!
发表于 2008-10-25 14:56:16 | 显示全部楼层
直接用脚本的?
工具链调整部分都已经核实安装无误?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-25 15:00:06 | 显示全部楼层
难道是在

  1. sed -i \
  2. 's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \
  3.         scripts/test-installation.pl
复制代码

的时候那个
-Wl 写成了 -W1 ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-25 15:01:24 | 显示全部楼层
Post by lofeng410;1899093
直接用脚本的?
工具链调整部分都已经核实安装无误?


我是手动敲的命令. 好像就是把
-Wl 看成了-W1了.

那我现在怎么办? 重新编译一次glibc吗?
回复 支持 反对

使用道具 举报

发表于 2008-10-25 15:04:41 | 显示全部楼层
Post by scutan;1899099
难道是在
  1. sed -i \
  2. 's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \
  3.         scripts/test-installation.pl
复制代码
的时候那个
-Wl 写成了 -W1 ?

这个我就不清楚了,但是Wl,那个l是字母

我是按照手册中来的 是没有问题的
BTW:俺太菜,看不懂那个脚本,只好找简单容易明白的来
回复 支持 反对

使用道具 举报

发表于 2008-10-25 15:06:20 | 显示全部楼层
Post by scutan;1899100
我是手动敲的命令. 好像就是把
-Wl 看成了-W1了.

那我现在怎么办? 重新编译一次glibc吗?

删除glibc-build和glibc-***,然后重新来过。这样应该可以,我没有试验过,不敢确信
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-25 15:08:02 | 显示全部楼层
Post by lofeng410;1899101
这个我就不清楚了,但是Wl,那个l是字母

我是按照手册中来的 是没有问题的
BTW:俺太菜,看不懂那个脚本,只好找简单容易明白的来


谢谢, 我重新编译一次glibc.
回复 支持 反对

使用道具 举报

发表于 2008-10-27 14:06:41 | 显示全部楼层
命令再打一次就好了
回复 支持 反对

使用道具 举报

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

本版积分规则

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