git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Unable to build git on Lion - missing config.h from Perl header files

From
Sorin Sbarnea <sorin.sbarnea@gmail.com>
Date
Aug 19, 2011, 22:27 UTC
Message-ID
<CAGDPfJpSVknybUjUsHkb1Mb8_SqQxJB2idRTxxfsT8eRSA91CQ@mail.gmail.com>
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 <brandon.casey.ctr@nrlssc.navy.mil> wrote:

Show 29 quoted lines
> 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 <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
>
Previous: Brandon CaseyNext: Junio C Hamano
Message 6 of 8 in “Unable to build git on Lion - missing config.h from Perl header files”
  1. Sorin SbarneaAug 19, 2011
  2. David AguilarAug 19, 2011
  3. Sorin SbarneaAug 19, 2011
  4. Thomas RastAug 19, 2011
  5. Brandon CaseyAug 19, 2011
  6. Sorin SbarneaAug 19, 2011
  7. Junio C HamanoAug 19, 2011
  8. Brandon CaseyAug 19, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.