Joh*_*ohn 57 git shared-hosting compiler-errors gettext msgfmt
我正在尝试从我的共享主机更新Git.为此,我遵循以下步骤:
./configure --prefix=$HOME/dev/git/src --without-tcltkmake然后make install我被困在第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
Run Code Online (Sandbox Code Playgroud)
编译器抛出msgfmt command not found错误.
我用Google搜索它,它似乎与gettext包有关.
知道如何在共享主机上修复该错误吗?
Bob*_* F. 154
我遇到过同样的问题.感谢你找到它的工作与gettext相关,一个简单的apt-get install gettext修复它对我来说.
Max*_*ske 18
在使用Xcode构建Git(使用Makefile)时,我必须NO_GETTEXT = YesPlease在Makefile中定义以解决此问题.
在 Mac Os 上,这对我有用:
brew install gettext
Run Code Online (Sandbox Code Playgroud)
brew link gettext --force
Run Code Online (Sandbox Code Playgroud)