LFS - 版本 SVN-20200315 - GLibc 无法*安装*

LFS - 版本 SVN-20200315 - GLibc 无法*安装*

我只是按照 LFS 书进行操作,当我在 chroot 中第二次安装 GLibc 时,它构建得很好,但是当我运行时make install,它出错了。它将一个文件安装到/usr/share/i18n/charmaps,但随后继续尝试对其进行 gzip 压缩,但找不到它(至少我认为它是这样做的)。

日志的最后 30 行:

/usr/bin/install -c -m 644 /sources/glibc-2.31/build/gnu/lib-names-64.h /usr/include/gnu/lib-names-64.h
/usr/bin/install -c /sources/glibc-2.31/build/iconv/iconvconfig /usr/sbin/iconvconfig.new
mv -f /usr/sbin/iconvconfig.new /usr/sbin/iconvconfig
/usr/bin/install -c /sources/glibc-2.31/build/iconv/iconv_prog /usr/bin/iconv.new
mv -f /usr/bin/iconv.new /usr/bin/iconv
make[2]: Leaving directory '/sources/glibc-2.31/iconv'
make  subdir=locale -C locale ..=../ subdir_install
make[2]: Entering directory '/sources/glibc-2.31/locale'
/usr/bin/install -c -m 644 langinfo.h /usr/include/langinfo.h
/usr/bin/install -c -m 644 locale.h /usr/include/locale.h
/usr/bin/install -c -m 644 bits/locale.h /usr/include/bits/locale.h
/usr/bin/install -c -m 644 bits/types/locale_t.h /usr/include/bits/types/locale_t.h
/usr/bin/install -c -m 644 bits/types/__locale_t.h /usr/include/bits/types/__locale_t.h
/usr/bin/install -c /sources/glibc-2.31/build/locale/libBrokenLocale.so /lib/libBrokenLocale-2.31.so.new
mv -f /lib/libBrokenLocale-2.31.so.new /lib/libBrokenLocale-2.31.so
echo `../scripts/rellns-sh -p /lib/libBrokenLocale-2.31.so /lib/libBrokenLocale.so.1` /lib/libBrokenLocale.so.1 >> /sources/glibc-2.31/build/elf/symlink.list
rm -f /usr/lib/libBrokenLocale.so.new
/bin/sh ../scripts/rellns-sh /lib/libBrokenLocale.so.1 /usr/lib/libBrokenLocale.so.new
mv -f /usr/lib/libBrokenLocale.so.new /usr/lib/libBrokenLocale.so
/usr/bin/install -c -m 644 /sources/glibc-2.31/build/locale/libBrokenLocale.a /usr/lib/libBrokenLocale.a
/usr/bin/install -c -m 644 /sources/glibc-2.31/build/gnu/lib-names-64.h /usr/include/gnu/lib-names-64.h
/usr/bin/install -c /sources/glibc-2.31/build/locale/localedef /usr/bin/localedef.new
mv -f /usr/bin/localedef.new /usr/bin/localedef
/usr/bin/install -c /sources/glibc-2.31/build/locale/locale /usr/bin/locale.new
mv -f /usr/bin/locale.new /usr/bin/locale
make[2]: Leaving directory '/sources/glibc-2.31/locale'
make  subdir=localedata -C localedata ..=../ subdir_install
make[2]: Entering directory '/sources/glibc-2.31/localedata'
rm -f /usr/share/i18n/charmaps/ANSI_X3.110-1983 /usr/share/i18n/charmaps/ANSI_X3.110-1983.gz
/usr/bin/install -c -m 644 charmaps/ANSI_X3.110-1983 /usr/share/i18n/charmaps/ANSI_X3.110-1983
gzip -9n /usr/share/i18n/charmaps/ANSI_X3.110-1983
make[2]: gzip: No such file or directory
make[2]: *** [Makefile:310: /usr/share/i18n/charmaps/ANSI_X3.110-1983.gz] Error 127
make[2]: Leaving directory '/sources/glibc-2.31/localedata'
make[1]: *** [Makefile:470: localedata/subdir_install] Error 2
make[1]: Leaving directory '/sources/glibc-2.31'
make: *** [Makefile:12: install] Error 2

答案1

我已经弄清楚了。gzip没有安装,所以我安装了它并且它工作了

不是gzip找不到文件,而是gzip没有找到。

相关内容