Compiler error – msgfmt command not found when compiling git on a shared hosting

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

  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

I’m stuck at point 4. When I run the “make” command, I get the following:

  • Problems Compiling Scala SJSON from GitHub
  • Compilation Error when building Giraph
  • GitHub source misreporting its file location
  • How can I tell jenkins I do want the full error trace from a maven job?
    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/
    /bin/sh: msgfmt: command not found
    make: *** [po/build/locale/is/LC_MESSAGES/] Erreur 127

    Compiler throws a msgfmt command not found error.

    I Googled it and it seems to be related to the gettext package.

    Any idea how to fix that error on a shared hosting?

  • Trying to download an exe file from a website and run it
  • Git squash all commits in branch without conflicting
  • How do i get my “terminal” commands to run in the right folder from vba (on OSX)
  • Where is Heroku getting its RSA key from? It seems to be somewhere other than ~/.ssh/
  • Git workflow for single user
  • Search for text in git commit range
  • 6 Solutions collect form web for “Compiler error – msgfmt command not found when compiling git on a shared hosting”

    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.

    While building Git with Xcode (using Makefile), I had to define NO_GETTEXT = YesPlease in the Makefile to resolve this issue.

    msgfmt is included in the gettext-devel cygwin package. Install that (via setup.exe or apt-cyg) and the error should go away.

    make -i
    make -i install

    ..worked flawlessy for this problem. Also if anyone’s having trouble with http/https helper, during configure do not forget to add the following thing

    ./configure --with-curl --with-expat

    On cygwin, you need to install the gettext-devel package as well. The gettext package alone is not enough to resolve this problem.

    Try to add -i to your make command.

    > make -i ...

    Git Baby is a git and github fan, let's start git clone.