From: Sorin Sbarnea Date: Fri, 19 Aug 2011 22:27:22 GMT Subject: Re: Unable to build git on Lion - missing config.h from Perl header files Message-ID: In-Reply-To: <6LbwaepC5kIygT8uWl1Wf2A7S_AD1YkTya7FLCpDK4LOS7CNxjOveFLpzZtHv0dg_JJ8l78oW6XVugLUDAHkvBFItwH2yzYH6BgRAAZkFuM@cipher.nrlssc.navy.mil> I confirm that this workaround solved the problem. Now the question is what should be changed so git will be installed (and build) without problems by homebrew? Thanks Sorin Sbarnea On Fri, Aug 19, 2011 at 23:19, Brandon Casey wrote: > On 08/19/2011 05:12 PM, Thomas Rast wrote: >> Sorin Sbarnea wrote: >>> This was a clean-new Lion install, not an upgrade. I just installed >>> Xcode on alternate location /Developer41 instead of /Developer >>> >>> Yes, I did a `make clean` but it has no effect. >>> >>> The problem is that on Lion there is no config.h in the perl >>> directory, only a perl.h file. >> >> Color me puzzled, but where is it getting the config.h idea from? >> >>   $ git grep config\\.h >>   compat/fnmatch/fnmatch.c:# include >>   compat/regex/regex.c:#include "config.h" >>   t/t4014-format-patch.sh:test_expect_success '--no-add-headers overrides config.headers' ' >> >> Similarly, 'git grep config perl' only turns up matches in perl code. >> So what tells it to use config.h? > > Probably MakeMaker. > > Setting NO_PERL_MAKEMAKER may help: > >   rm perl/perl.mak >   make NO_PERL_MAKEMAKER=1 > > -Brandon >