Friday, March 01, 2013

Building Git on OSX

Getting this error message when running make with a fresh clone of the git source code?

GIT_VERSION = 1.8.2.rc1.19.g443d803
    * new build flags
    CC credential-store.o
In file included from credential-store.c:1:
In file included from ./cache.h:8:
./gettext.h:17:11: fatal error: 'libintl.h' file not found
#       include <libintl.h>
                ^
1 error generated.
make: *** [credential-store.o] Error 1


The solution is to disable this the component, which can be done by creating a config.mak file in the same directory with the following contents:

NO_GETTEXT = 1;

Your  welcome

1 comment:

Anonymous said...

Well done. Thank you, sir.