【发布时间】:2018-06-11 15:06:47
【问题描述】:
我正在尝试在 Debian(Linux 的 Windows 子系统)上编译静态 Git 2.17.1:
$ mkdir _git
$ make configure
$ ./configure --prefix=$PWD/_git NO_TCLTK=true NO_GETTEXT=true CFLAGS="${CFLAGS} -static"
$ make all
但我得到了错误
...
MSGFMT po/build/locale/pt_PT/LC_MESSAGES/git.mo
/bin/sh: 1: msgfmt: not found
Makefile:2309: 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
关于NO_GETTEXT的信息来自配置文件:
# Define NO_GETTEXT if you don't want Git output to be translated.
还需要msgfmt吗?
【问题讨论】:
-
这不是您获得有关
NO_GETTEXT信息的地方,也不是您为 makefile 定义变量的方式。 -
@jthill 好吧,那么问题是如何正确地做到这一点。