编译错误 - 在共享主机上编译git时找不到msgfmt命令 [英] Compiler error - msgfmt command not found when compiling git on a shared hosting

查看:1889
本文介绍了编译错误 - 在共享主机上编译git时找不到msgfmt命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从我的共享主机更新Git。为此,我按以下步骤操作:

I'm trying to update Git from my shared hosting. For that I'm following these steps:


  1. 下载最新的Git版本


  2. 配置并创建Makefile - > ./configure --prefix = $ HOME / dev / git / src --without-tcltk

  3. 修改包 - >make,然后make install

  4. 更新PATH .bash_profile

  1. Download latest Git version
  2. Unpack and place it on the server
  3. Configure and create the Makefile -> ./configure --prefix=$HOME/dev/git/src --without-tcltk
  4. Build the package -> "make" then "make install"
  5. Update PATH .bash_profile

当我运行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命令未找到错误。

任何想法如何解决共享主机上的错误?

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.

这篇关于编译错误 - 在共享主机上编译git时找不到msgfmt命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆