+ -
当前位置:首页 → 问答吧 → 求助...Glibc编译问题

求助...Glibc编译问题

时间:2007-10-20

来源:互联网

我使用的是6.2.5的LIVECD。在虚拟机内练习。按照版上那个6.2的CHM进行安装。
一切都很好,直到chroot后开始安装glibc。
解包,打补丁,configure时,问题来了:
checking for suffix of object files... configure:erreor:cannot computesuffix of object files:cannot compile.
我试着GCC编译一个最简单的程序,它提示:
installation problem, cannot exec
'/tools/lib/gcc/i686-pc-linux-gnu/4.0.3../../../../i686-pc-linux-gnu/bin/as':No such file or directory
我猜我肯定漏了什么,不过怎么也找不到啊~
本人第一次玩LFS,盼指教。。。

作者: stahine   发布时间: 2007-10-20

6.2-5 用 LiveCD自带的 源码包,或下载更新的。
自带的在 /lfs-sources 目录下。

作者: tfkdmwmqtr   发布时间: 2007-10-20

就是用的那个啊,我把它从/lfs-sources cp -Rv 到了 $LFS/lfs-sources 下。

作者: stahine   发布时间: 2007-10-20

chroot 环境下,使用 手册 的 Host System Requirements 的方法先检查一下。

http://www.linuxfromscratch.org/lfs/.../hostreqs.html
把结果帖出来。

作者: tfkdmwmqtr   发布时间: 2007-10-20

我是教育网,出不了国啊~~~可不可以麻烦贴一下?谢谢

作者: stahine   发布时间: 2007-10-20

代码:
cat > version-check.sh << "EOF"
#!/bin/bash

# Simple script to list version numbers of critical development tools

bash --version | head -n1 | cut -d" " -f2-4
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-4
bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
diff --version | head -n1
find --version | head -n1
gawk --version | head -n1
gcc --version | head -n1
/lib/libc.so.6 | head -n1 | cut -d" " -f1-7
grep --version | head -n1
gzip --version | head -n1
cat /proc/version | head -n1 | cut -d" " -f1-3,5-7
make --version | head -n1
patch --version | head -n1
sed --version | head -n1
tar --version | head -n1

EOF

bash version-check.sh

作者: tfkdmwmqtr   发布时间: 2007-10-20

出错信息:
Binutills:version-check.sh: line 2 :/tools/bin/ld: NO such file or directory
version-check.sh:such file or directory
version-check.sh: line 9:/lib/libc.so.6: No such file or directory

但是我明明有/tools/bin/ld啊~~

作者: stahine   发布时间: 2007-10-20

确实好玩了~我执行ld,ld-old都说找不到文件,只有ld-new 才能执行~~

作者: stahine   发布时间: 2007-10-20

如果glibc还未编译成功,可以这样:

ln -sv /tools/lib/libc.so.6 /lib/
ln -sv /tools/bin/ld /bin/

作者: tfkdmwmqtr   发布时间: 2007-10-20

Thanks,but I've give up ...
I cleaned my hard drive and installed an linux.
But I connected to the net just now ,it have some problem~~and I have'nt installed scim yet.

作者: stahine   发布时间: 2007-10-26

google :

scim-1.4.6.tar.gz
scim-tables-0.5.7.tar.gz
scim-pinyin-0.5.91.tar.gz

作者: tfkdmwmqtr   发布时间: 2007-10-26