LinuxSir.cn,穿越时空的Linuxsir!

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

请教一下,刚开始安装LFS(出现问题)

[复制链接]
发表于 2005-5-1 19:40:10 | 显示全部楼层 |阅读模式
刚开始安装LFS4.0,按文档上的步骤一步步做下来
安装Bash,装完后,在/mnt/lfs/static/bin下面只有bash和bashbug这两个程序,少了sh这个程序。安装完Binutils,少了gasp这个程序。装完Findutils,少了bigram,code和frcode这三个程序。装完Gawk,少了grcat和pwcat这两个程序。
   在安装Gcc-3.2提示出错了。(上面那几项安装,没有发现有提示出错)

c++locale.cc:170: `__newlocale' undeclared (first use this function)
c++locale.cc: In static member function `static void
   std::locale::facet::_S_destroy_c_locale(__locale_struct*&)':
c++locale.cc:180: `__freelocale' undeclared (first use this function)
c++locale.cc: In static member function `static __locale_struct*
   std::locale::facet::_S_clone_c_locale(__locale_struct*&)':
c++locale.cc:184: `__duplocale' undeclared (first use this function)
make[4]: *** [c++locale.lo] Error 1
make[4]: Leaving directory `/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/mnt/lfs/static/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/mnt/lfs/static/src/gcc-build'
make: *** [bootstrap] Error 2

不知道如何解决,请大虾们帮帮我。

这下面是安装Bash提示的一小段:
used for linking
./lib/sh/libsh.a(netopen.o)(.text+0x3a): In function `_netopen6':
/mnt/lfs/static/src/bash-2.05a/lib/sh/netopen.c:217: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
ls -l bash
-rwxr-xr-x    1 lfs1     lfs1       910564 May  6 21:19 bash
size bash
   text    data     bss     dec     hex filename
869971   28636   20420  919027   e05f3 bash
/usr/bin/install -c -m 0755 bash /mnt/lfs/static/bin/bash
/usr/bin/install -c -m 0555 bashbug /mnt/lfs/static/bin/bashbug
( cd ./doc ; make  \
        man1dir=/mnt/lfs/static/man/man1 man1ext=.1 \
        man3dir=/mnt/lfs/static/man/man3 man3ext=.3 \
        infodir=/mnt/lfs/static/info htmldir= DESTDIR= install )
make[1]: Entering directory `/mnt/lfs/static/src/bash-2.05a/doc'
test -d /mnt/lfs/static/man/man1 || /bin/sh ../support/mkdirs /mnt/lfs/static/man/man1
test -d /mnt/lfs/static/info || /bin/sh ../support/mkdirs /mnt/lfs/static/info
if test -n "" ; then \
        test -d  || /bin/sh ../support/mkdirs  ; \
fi
/usr/bin/install -c -m 644 ./bash.1 /mnt/lfs/static/man/man1/bash.1
/usr/bin/install -c -m 644 ./bashbug.1 /mnt/lfs/static/man/man1/bashbug.1
/usr/bin/install -c -m 644 ./bashref.info /mnt/lfs/static/info/bash.info
if /bin/sh -c 'install-info --version' >/dev/null 2>&1; then \
        install-info --dir-file=/mnt/lfs/static/info/dir /mnt/lfs/static/info/bash.info; \
else true; fi
if test -n "" ; then \
        /usr/bin/install -c -m 644 ./bash.html  ; \
        /usr/bin/install -c -m 644 ./bashref.html  ; \
fi
make[1]: Leaving directory `/mnt/lfs/static/src/bash-2.05a/doc'
 楼主| 发表于 2005-5-6 21:58:05 | 显示全部楼层
请有经验的大虾,高手们帮帮忙。
回复 支持 反对

使用道具 举报

发表于 2005-5-6 23:58:07 | 显示全部楼层
sh是连接到bash的。
其它的怎么会出现缺少的现象呢?
可能是跟你的主系统有关?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-7 12:21:08 | 显示全部楼层
我的主系统是红旗4.1的。
难道sh要我们安装完bash后自己来链接吗?文档上没有要我们自己来连啊。我想应该是装完bash就自动产生链接了。
回复 支持 反对

使用道具 举报

发表于 2005-5-7 21:24:41 | 显示全部楼层
不懂
为什么不直接安装6.0呢?
回复 支持 反对

使用道具 举报

发表于 2005-5-7 22:38:48 | 显示全部楼层
ln -s bash /tools/bin/sh

本来在文档里面就是要自己进行连接的。
回复 支持 反对

使用道具 举报

发表于 2005-5-20 20:02:06 | 显示全部楼层
Post by chengsongyong
刚开始安装LFS4.0


兄弟,能把你的LFS 4.0的包传一份给我吗?
回复 支持 反对

使用道具 举报

发表于 2005-5-20 20:08:58 | 显示全部楼层
LFS6.0 said that you must link sh to bash for the sake of #!/bin/sh in shell script using bash instead.
回复 支持 反对

使用道具 举报

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

本版积分规则

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