我很难在运行ARM的ARM开发板上构建Git。Armbian是Ubuntu的仿生衍生产品。Git在make test
食谱上失败了。
make[1]: Leaving directory '/home/build/git-2.21.0/templates'
mkdir -p po/build/locale/pt_PT/LC_MESSAGES/ && msgfmt --check --statistics -o po/build/locale/pt_PT/LC_MESSAGES/git.mo po/pt_PT.po
/bin/sh: 1: msgfmt: not found
Makefile:2533: recipe for target 'po/build/locale/pt_PT/LC_MESSAGES/git.mo' failed
make: *** [po/build/locale/pt_PT/LC_MESSAGES/git.mo] Error 127
但是:
$ apt-cache search msgfmt
libdist-zilla-plugin-localemsgfmt-perl - Dist::Zilla plugin to compile PO files with Locale::Msgfmt
liblocale-msgfmt-perl - pure Perl reimplementation of msgfmt
和:
$ apt-cache policy liblocale-msgfmt-perl
liblocale-msgfmt-perl:
Installed: 0.15-1
Candidate: 0.15-1
然而:
$ command -v msgfmt
$
hash -r
没有解决这个问题。这个问题不存在于我所拥有的其他机器上,包括Ubuntu和Fedora机器。
有什么问题,我该如何解决?
发布于 2019-05-02 04:20:17
$ apt-file search bin/msgfmt
gettext: /usr/bin/msgfmt
$ sudo apt install gettext
msgfmt
是gettext
的一部分。
dpkg -L liblocale-msgfmt-perl
将向您展示liblocale-msgfmt-perl
没有提供msgfmt
命令(这确实使其描述具有误导性)。
apt-cache search msgfmt
找不到gettext
,因为gettext
包的描述没有提到它:
Description: GNU Internationalization utilities
Interesting for authors or maintainers of other packages or programs
which they want to see internationalized.
https://unix.stackexchange.com/questions/516669
复制相似问题