LinuxSir.cn,穿越时空的Linuxsir!

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

第六章 make glibc-2.5.1 时出错

[复制链接]
发表于 2009-5-24 21:03:18 | 显示全部楼层 |阅读模式
做到第六章的glibc;了,结果在make的时候出错了(如下所示)

build/locale/localedef.o.dt -MT /sources/glibc-build/locale/localedef.o
no gen-translit.pl < C-translit.h.in > C-translit.h.tmp
/bin/sh: no: command not found
make[2]: *** [C-translit.h] Error 127
make[2]: Leaving directory `/sources/glibc-2.5.1/locale'
make[1]: *** [locale/others] Error 2
make[1]: Leaving directory `/sources/glibc-2.5.1'
make: *** [all] Error 2



但可以确定的是,bash和sh之间的连接已经有了
发表于 2009-5-24 23:01:58 | 显示全部楼层
那麽 ls -l /bin/sh 的结果是?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-25 12:08:11 | 显示全部楼层
Post by d00m3d;1990678
那麽 ls -l /bin/sh 的结果是?


lwxrwxrwx 1 root root 4 May 24 02:09 /bin/sh -> bash
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-25 18:13:36 | 显示全部楼层
现在该如何返回上一章呢?
据说要重新编译perl
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-28 22:50:34 | 显示全部楼层

第六章 make glibc-2.5.1 的错误到底有没有解决方案?

已经是很多人出的问题了,但是至今也没看到解决方案啊,到底有没有人管啊?

no gen-translit.pl < C-translit.h.in > C-translit.h.tmp
/bin/sh: no: command not found
make[2]: *** [C-translit.h] Error 127
make[2]: Leaving directory `/sources/glibc-2.5.1/locale'
make[1]: *** [locale/others] Error 2
make[1]: Leaving directory `/sources/glibc-2.5.1'
make: *** [all] Error 2



但可以确定的是,bash和sh之间的连接已经有了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-31 19:16:19 | 显示全部楼层

濒临崩溃…… glibc……

从头来了3次+每次还从第六章返回第五章再做一次=6次
还是没有成功,一样的问题,我要崩溃了

结果在make的时候出错了(如下所示)

build/locale/localedef.o.dt -MT /sources/glibc-build/locale/localedef.o
no gen-translit.pl < C-translit.h.in > C-translit.h.tmp
/bin/sh: no: command not found
make[2]: *** [C-translit.h] Error 127
make[2]: Leaving directory `/sources/glibc-2.5.1/locale'
make[1]: *** [locale/others] Error 2
make[1]: Leaving directory `/sources/glibc-2.5.1'
make: *** [all] Error 2
回复 支持 反对

使用道具 举报

发表于 2009-6-1 04:50:11 | 显示全部楼层
这只能说明你重重覆覆都是相同的问题,在主系统不 chroot 时

ls -l /tools/bin/sh 结果为何?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-1 20:35:51 | 显示全部楼层
Post by d00m3d;1992877
这只能说明你重重覆覆都是相同的问题,在主系统不 chroot 时

ls -l /tools/bin/sh 结果为何?


lrwxrwxrwx 1 root root 4 May 26 16:44 /mnt/lfs/tools/bin/sh -> bash

这个结果有没有错呢??

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-2 19:50:23 | 显示全部楼层
这样的结果到底对不对啊??
回复 支持 反对

使用道具 举报

发表于 2009-6-3 19:15:33 | 显示全部楼层
build/locale/localedef.o.dt -MT /sources/glibc-build/locale/localedef.o
no gen-translit.pl < C-translit.h.in > C-translit.h.tmp
/bin/sh: no: command not found

gen-translit.pl 為 一個 perl 程序 正常情況 應該用 perl 來執行

perl gen-translit.pl < C-translit.h.in > C-translit.h.tmp

這裡 用 no  來執行 估計是 沒安 perl 或者 perl 不能正常工作
ps :   用 perl  -V   可以簡單 測試一下 perl 是否正常

1 如果 perl : command not found 證明 木有 安
2 如果  
Can't locate Config.pm in @INC (@INC contains: /tools/lib/perl .).
BEGIN failed--compilation aborted.
之類的 那就是 第伍章 perl 時漏啦(版本號可能不同)
mkdir -pv /tools/lib/perl5/5.10.0
cp -Rv lib/* /tools/lib/perl5/5.10.0

出現 上面2种之一都要 從裝 第5章的 perl
回复 支持 反对

使用道具 举报

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

本版积分规则

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