Re: Unable to build git on Lion - missing config.h from Perl header files
On 08/19/2011 05:12 PM, Thomas Rast wrote:
Show 18 quoted lines
> 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 <config.h>
> 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