首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >虽然msgfmt是通过包管理器安装的,但找不到msgfmt。

虽然msgfmt是通过包管理器安装的,但找不到msgfmt。
EN

Unix & Linux用户
提问于 2019-05-02 03:32:33
回答 1查看 9.4K关注 0票数 1

我很难在运行ARM的ARM开发板上构建Git。Armbian是Ubuntu的仿生衍生产品。Git在make test食谱上失败了。

代码语言:javascript
运行
复制
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

但是:

代码语言:javascript
运行
复制
$ 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

和:

代码语言:javascript
运行
复制
$ apt-cache policy liblocale-msgfmt-perl
liblocale-msgfmt-perl:
  Installed: 0.15-1
  Candidate: 0.15-1

然而:

代码语言:javascript
运行
复制
$ command -v msgfmt
$

hash -r没有解决这个问题。这个问题不存在于我所拥有的其他机器上,包括Ubuntu和Fedora机器。

有什么问题,我该如何解决?

EN

回答 1

Unix & Linux用户

发布于 2019-05-02 04:20:17

代码语言:javascript
运行
复制
$ apt-file search bin/msgfmt
gettext: /usr/bin/msgfmt
$ sudo apt install gettext

msgfmtgettext的一部分。

代码语言:javascript
运行
复制
dpkg -L liblocale-msgfmt-perl

将向您展示liblocale-msgfmt-perl没有提供msgfmt命令(这确实使其描述具有误导性)。

代码语言:javascript
运行
复制
apt-cache search msgfmt

找不到gettext,因为gettext包的描述没有提到它:

代码语言:javascript
运行
复制
Description: GNU Internationalization utilities
 Interesting for authors or maintainers of other packages or programs
 which they want to see internationalized.
票数 8
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/516669

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档