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
BCBrandon Casey <brandon.casey.ctr@nrlssc.navy.mil>
Date
Aug 19, 2011, 22:57 UTC
Message-ID
<3TtrXbFVbVBpoFp03GzorAbFk1nah9JWGbzZoev7ibqE4phUwUuQOxugdF7MaGB4A7t5rxO6zbw9rxO2xRnaY15F4dNLwBGhb-XCgbYKZ1E@cipher.nrlssc.navy.mil>
In-Reply-To
<7vk4a910rd.fsf@alter.siamese.dyndns.org>
On 08/19/2011 05:42 PM, Junio C Hamano wrote:
Show 21 quoted lines
> Sorin Sbarnea <sorin.sbarnea@gmail.com> writes:
> 
>> On Fri, Aug 19, 2011 at 23:19, Brandon Casey
>>> Probably MakeMaker.
>>>
>>> Setting NO_PERL_MAKEMAKER may help:
>>>
>>>   rm perl/perl.mak
>>>   make NO_PERL_MAKEMAKER=1
>>>
>> 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?
> 
> If the user's distro does not have packaged makemaker, or if the user
> chooses not to install it, then the build procedure of git can be told to
> avoid using it, which is what you did. So there is nothing to fix there.
> 
> If you are not going to tell git to avoid makemaker, in other words, if
> you want to use makemaker, then installing it before starting the build
> procedure would help, too. But that is outside the scope of git project.

I got the impression that his system did have makemaker, and that it created the perl.mak file, but then building git failed because some header files were missing from his perl installation.

Earlier he said:
>> The only files existing in
>> /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/ are
>> libperl.dylib andperl.h.

I don't have access to a mac, but on my system I have many header files in .../x86_64-linux-thread-multi/CORE/ including config.h. These files are part of the base perl installation rpm (i.e. not some -devel rpm).

But like you said, there is nothing to fix on the git side of things.
-Brandon
Previous: Junio C Hamano
Message 8 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.