# Compiling Git in Mac OS X Leopard

3 messages from 2008-02-07 to 2008-02-07. Participants: Sami Maisniemi, Shawn O. Pearce, Luke Lu.
Thread: https://gitlist.dev/t/11932

## Sami Maisniemi, 2008-02-07 07:09

Subject: Compiling Git in Mac OS X Leopard
Message-ID: <E9380AA8-2E38-4733-9940-FFD51BB84700@maisniemi.net>
URL: https://gitlist.dev/e/E9380AA8-2E38-4733-9940-FFD51BB84700%40maisniemi.net

```
Hi,

I tried to compile Git in Mac OS X Leopard, because I was unable to  
find any precompiled binaries. However, the compilation was aborted  
due to the following error:

msgfmt --statistics --tcl po/de.po -l de -d po/
make[1]: msgfmt: Command not found
make[1]: *** [po/de.msg] Error 127
make: *** [all] Error 2

It seems that the makefile uses an application called msgfmt that is  
not available in Mac OS X Leopard. What is application msgfmt and why  
it is required? Is there any kind of workaround available?

Regards Sami Maisniemi

```

## Shawn O. Pearce, 2008-02-07 07:23

Subject: Re: Compiling Git in Mac OS X Leopard
Message-ID: <20080207072359.GR24004@spearce.org>
URL: https://gitlist.dev/e/20080207072359.GR24004%40spearce.org
In-Reply-To: <E9380AA8-2E38-4733-9940-FFD51BB84700@maisniemi.net>

```
Sami Maisniemi <sami@maisniemi.net> wrote:
> I tried to compile Git in Mac OS X Leopard, because I was unable to  
> find any precompiled binaries. However, the compilation was aborted  
> due to the following error:
> 
> msgfmt --statistics --tcl po/de.po -l de -d po/
> make[1]: msgfmt: Command not found
> make[1]: *** [po/de.msg] Error 127
> make: *** [all] Error 2
> 
> It seems that the makefile uses an application called msgfmt that is  
> not available in Mac OS X Leopard. What is application msgfmt and why  
> it is required? Is there any kind of workaround available?

Use:

	make NO_MSGFMT=1

to use the msgfmt work-somewhat-alike that ships with git, for this
exact purpose.  Newer versions than what you are trying to build
should be automatically detecting if msgfmt isn't available and
falling back to that work-somewhat-alike version.   gitgui-0.9.2,
which ships with git 1.5.4, does have that fallback.

-- 
Shawn.

```

## Luke Lu, 2008-02-07 07:32

Subject: Re: Compiling Git in Mac OS X Leopard
Message-ID: <F1020256-19B0-4B86-A9D8-79E36A058A23@vicaya.com>
URL: https://gitlist.dev/e/F1020256-19B0-4B86-A9D8-79E36A058A23%40vicaya.com
In-Reply-To: <E9380AA8-2E38-4733-9940-FFD51BB84700@maisniemi.net>

```
On Feb 6, 2008, at 11:09 PM, Sami Maisniemi wrote:
> Hi,
>
> I tried to compile Git in Mac OS X Leopard, because I was unable to  
> find any precompiled binaries. However, the compilation was aborted  
> due to the following error:
>
> msgfmt --statistics --tcl po/de.po -l de -d po/
> make[1]: msgfmt: Command not found
> make[1]: *** [po/de.msg] Error 127
> make: *** [all] Error 2
>
> It seems that the makefile uses an application called msgfmt that  
> is not available in Mac OS X Leopard. What is application msgfmt  
> and why it is required? Is there any kind of workaround available?
>
> Regards Sami Maisniemi

Install macports if you haven't and then

sudo port selfupdate
sudo port install git-core

macports should manage all the dependencies needed by the packages  
including gettext which provides msgfmt,  After that you can git  
clone the lastest git.git if you want to mess with git and it should  
compile without any problem.

__Luke

```
