我正在尝试从我的共享主机上更新Git。为此,我按照以下步骤进行:
- 下载最新的Git版本
- 解压并放置到服务器上
- 配置和创建Makefile ->
./configure --prefix=$HOME/dev/git/src --without-tcltk
- 构建软件包 ->
make
然后make install
- 更新路径 .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包有关。
你有什么办法可以在共享主机上修复这个错误吗?