+ -
当前位置:首页 → 问答吧 → 第六章 make glibc-2.5.1 时出错

第六章 make glibc-2.5.1 时出错

时间:2009-05-25

来源:互联网

做到第六章的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之间的连接已经有了

作者: hawkingyy   发布时间: 2009-05-25

那麽 ls -l /bin/sh 的结果是?

作者: d00m3d   发布时间: 2009-05-25

引用:
作者: d00m3d
那麽 ls -l /bin/sh 的结果是?
lwxrwxrwx 1 root root 4 May 24 02:09 /bin/sh -> bash

作者: hawkingyy   发布时间: 2009-05-25

现在该如何返回上一章呢?
据说要重新编译perl

作者: hawkingyy   发布时间: 2009-05-25

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

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之间的连接已经有了

作者: hawkingyy   发布时间: 2009-05-29

从头来了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

作者: hawkingyy   发布时间: 2009-05-31

这只能说明你重重覆覆都是相同的问题,在主系统不 chroot 时

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

作者: d00m3d   发布时间: 2009-06-01

引用:
作者: d00m3d
这只能说明你重重覆覆都是相同的问题,在主系统不 chroot 时

ls -l /tools/bin/sh 结果为何?
lrwxrwxrwx 1 root root 4 May 26 16:44 /mnt/lfs/tools/bin/sh -> bash

这个结果有没有错呢??
上传的图像
svzTEMKb.jpg (69.0 KB, 3 次查看)
11.JPG (16.9 KB, 5 次查看)

作者: hawkingyy   发布时间: 2009-06-02

这样的结果到底对不对啊??

作者: hawkingyy   发布时间: 2009-06-02

引用:
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

作者: RTL   发布时间: 2009-06-03

引用:
作者: RTL
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
perl -V了一下
这样算不算有问题?
上传的图像
截图00.jpg (65.1 KB, 15 次查看)

作者: hawkingyy   发布时间: 2009-06-05

回復 第 11 帖
那圖 的 perl 是正常的
那圖 貌次是 主系統的 perl

第六章的glibc 用的是 /tools/bin/perl 應該檢查的是這個

作者: RTL   发布时间: 2009-06-06

引用:
作者: RTL
回復 第 11 帖
那圖 的 perl 是正常的
那圖 貌次是 主系統的 perl

第六章的glibc 用的是 /tools/bin/perl 應該檢查的是這個
那是否还需要把用户切换到lfs?
还是直接 /tools/bin/perl -V ??

作者: hawkingyy   发布时间: 2009-06-06