【发布时间】:2012-03-19 01:03:08
【问题描述】:
我正在尝试从我的共享主机更新 Git。为此,我正在执行以下步骤:
- 下载最新的 Git 版本
- 解压并放在服务器上
- 配置和创建 Makefile ->
./configure --prefix=$HOME/dev/git/src --without-tcltk - 构建包 ->
make然后make install - 更新 PATH .bash_profile
我被困在第 4 点。当我运行 make 命令时,我得到以下信息:
user@ssh1:~/dev/git/src$ make
SUBDIR gitweb
SUBDIR ../
make[2]: ? GIT-VERSION-FILE ? est ? jour.
GEN git-instaweb
SUBDIR perl
SUBDIR git_remote_helpers
SUBDIR templates
MSGFMT po/build/locale/is/LC_MESSAGES/git.mo
/bin/sh: msgfmt: command not found
make: *** [po/build/locale/is/LC_MESSAGES/git.mo] Erreur 127
编译器抛出msgfmt command not found 错误。
我用谷歌搜索了一下,它似乎与 gettext 包有关。
知道如何在共享主机上修复该错误吗?
【问题讨论】:
-
快速破解:尝试“make -k”或“make -i”来跳过编译,可能你会得到 Git,但没有本地化和/或文档。
-
你说得对,msgfmt 对于运行 Git 并不重要。 “make -i”工作了,谢谢。
-
对于 OSX,您可以在这里找到答案 stackoverflow.com/a/32821791/1257959
标签: git compiler-errors gettext shared-hosting msgfmt