msgfmtはパッケージマネージャを介してインストールされましたが、msgfmtが見つかりませんでした。

msgfmtはパッケージマネージャを介してインストールされましたが、msgfmtが見つかりませんでした。

Armbianを実行しているARMボードのソースからGitをビルドするのに問題があります。 ArmbianはUbuntu Bionicの派生物です。 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システムを含む他のシステムには存在しません。

問題は何で、どのように解決しますか?

ベストアンサー1

$ 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.

おすすめ記事