编译器错误 - 找不到 msgfmt 命令 [英] Compiler error - msgfmt command not found
本文介绍了编译器错误 - 找不到 msgfmt 命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试从我的共享主机更新 Git.为此,我正在执行以下步骤:
I'm trying to update Git from my shared hosting. For that I'm following these steps:
- 下载最新的 Git 版本
- 解压并放到服务器上
- 配置并创建 Makefile ->
./configure --prefix=$HOME/dev/git/src --without-tcltk
- 构建包 ->
make
然后make install
- 更新路径 .bash_profile
我被困在第 4 点.当我运行 make
命令时,我得到以下信息:
I'm stuck at point 4. When I run the make
command, I get the following:
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 包有关.
I Googled it and it seems to be related to the gettext package.
知道如何在共享主机上修复该错误吗?
Any idea how to fix that error on a shared hosting?
推荐答案
我遇到了同样的问题.感谢您发现它与 gettext 相关的工作,一个简单的 apt-get install gettext
为我修复了它.
I had the same issue. Thanks to your work on finding it was related to gettext, a simple apt-get install gettext
fixed it for me.
这篇关于编译器错误 - 找不到 msgfmt 命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文