Compiler error - msgfmt command not found

I am trying to upgrade Git from my shared hosting. To do this, I follow these steps:

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

I am stuck in step 4. When I run the make , 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 

The compiler throws an msgfmt command not found error.

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

Any ideas how to fix this error on shared hosting?

+55
git compiler-errors gettext shared-hosting
29 Feb 2018-12-12T00:
source share
8 answers

I had the same problem. Thanks to your work on detecting it was related to gettext, a simple apt-get install gettext fixed it for me.

+147
Mar 15 2018-12-15T00:
source share

When building Git using Xcode (using the Makefile) I had to define NO_GETTEXT = YesPlease in the Makefile to solve this problem.

+18
Jun 16 2018-12-12T00:
source share

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

+17
Mar 03 '14 at 23:37
source share
 make -i make -i install 

.. worked flawlessly for this problem. In addition, if anyone has problems with the http / https helper, be sure to add the following during setup:

 ./configure --with-curl --with-expat 
+3
Dec 27 '12 at 12:40
source share

In cygwin, you also need to install the gettext-devel package. One gettext package is not enough to solve this problem.

+2
Feb 13 '14 at 16:53
source share

You can install gettext just like you install git. By downloading, unpacking, compiling and installing it in a specific place in your home folder:

 curl -O https://ftp.gnu.org/pub/gnu/gettext/gettext-0.20.1.tar.gz tar xvf gettext-0.20.1.tar.gz cd gettext-0.20.1/ ./configure --prefix=/home/$HOME/opt make make install 

Set the prefix to the place you want to install.

0
May 27 '19 at 14:24
source share

xgettext , msgfmt , etc. belong to GNU gettext toolset. On macOS, you can use the port MacPort command to install these tools on your system:

 port install gettext 
0
Jun 07 '19 at 6:19 06:19
source share

Try adding -i to the make command.

> make -i ...

-one
Nov 15 '12 at 12:44
source share



All Articles