threads / discuss / 11932

Compiling Git in Mac OS X Leopard

Subject: Compiling Git in Mac OS X Leopard

## tl;dr

3 messages between Feb 7, 2008 and Feb 7, 2008.

replies: 2people: 3as markdown or json

Sami Maisniemi· Feb 7, 2008, 07:09 UTC · lore
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· Feb 7, 2008, 07:23 UTC · re: Sami Maisniemi · lore

Re: Compiling Git in Mac OS X Leopard

Sami Maisniemi <sami@maisniemi.net> wrote:
Show 12 quoted lines
> 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· Feb 7, 2008, 07:32 UTC · re: Sami Maisniemi · lore

Re: Compiling Git in Mac OS X Leopard

On Feb 6, 2008, at 11:09 PM, Sami Maisniemi wrote:
Show 16 quoted lines
> 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

← back to recent threads