我正在尝试在 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
尽管如此?
最佳答案
这对我有用。make NO_GETTEXT=YesPlease
关于git - 不使用 gettext 编译 Git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50800829/