{"thread":{"id":"28164","subject":"Unable to build git on Lion - missing config.h from Perl header files","startedAt":"2011-08-19T16:31:39Z","lastAt":"2011-08-19T22:57:24Z","messageCount":8,"participants":["Sorin Sbarnea","David Aguilar","Thomas Rast","Brandon Casey","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"173866","messageId":"CAGDPfJr01SPXvqDkYwingJ0Vu9DZx7GXO4G2uhFFfOWPvm1Rgw@mail.gmail.com","threadId":"28164","inReplyTo":"611AB1F99D784B92B1F7278139D6EED5@gmail.com","subject":"Unable to build git on Lion - missing config.h from Perl header files","fromName":"Sorin Sbarnea","fromEmail":"sorin.sbarnea@gmail.com","sentAt":"2011-08-19T16:31:39Z","receivedAt":"2011-08-19T16:31:39Z","isPatch":false,"sender":{"key":"sorin.sbarnea@gmail.com","avatar":"https://gravatar.com/avatar/4bbe150743a337946af2b77304be17ef446786eaef34bbebbd04806e56d78098?d=mp&s=160"},"body":"Hi,\n\nI came across the following problem while trying to build git (1.7.6) on Lion\nhttps://github.com/mxcl/homebrew/issues/7091\n\nThe only files existing in\n/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/ are\nlibperl.dylib andperl.h.\n\nmake[2]: *** No rule to make target\n`/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h',\nneeded by `perl.mak'.  Stop.\nmake[1]: *** [instlibdir] Error 2\n\nIf possible it would be a good idea to continue the discussion on\nhomebrew bug tracker\n\nThanks,\n-- \nSorin Sbarnea\n"},{"id":"173882","messageId":"9B588F2F-ACDF-4DA7-BE30-E075CA729731@gmail.com","threadId":"28164","inReplyTo":"CAGDPfJr01SPXvqDkYwingJ0Vu9DZx7GXO4G2uhFFfOWPvm1Rgw@mail.gmail.com","subject":"Re: Unable to build git on Lion - missing config.h from Perl header files","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2011-08-19T20:58:55Z","receivedAt":"2011-08-19T20:58:55Z","isPatch":false,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"On Aug 19, 2011, at 9:31 AM, Sorin Sbarnea <sorin.sbarnea@gmail.com> wrote:\n\n> Hi,\n> \n> I came across the following problem while trying to build git (1.7.6) on Lion\n> https://github.com/mxcl/homebrew/issues/7091\n> \n> The only files existing in\n> /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/ are\n> libperl.dylib andperl.h.\n> \n> make[2]: *** No rule to make target\n> `/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h',\n> needed by `perl.mak'.  Stop.\n> make[1]: *** [instlibdir] Error 2\n> \n> If possible it would be a good idea to continue the discussion on\n> homebrew bug tracker\n> \n> Thanks,\n> -- \n> Sorin Sbarnea\n\nDid you upgrade to lion from a system where you were building previously? Did you try \"make clean\"?\n\n-- \n                                        David"},{"id":"173885","messageId":"CAGDPfJoG_ksfL5vqzGWe5jqW646CKB=Qxm9_G5d=ZHMWfixweA@mail.gmail.com","threadId":"28164","inReplyTo":"9B588F2F-ACDF-4DA7-BE30-E075CA729731@gmail.com","subject":"Re: Unable to build git on Lion - missing config.h from Perl header files","fromName":"Sorin Sbarnea","fromEmail":"sorin.sbarnea@gmail.com","sentAt":"2011-08-19T21:43:35Z","receivedAt":"2011-08-19T21:43:35Z","isPatch":false,"sender":{"key":"sorin.sbarnea@gmail.com","avatar":"https://gravatar.com/avatar/4bbe150743a337946af2b77304be17ef446786eaef34bbebbd04806e56d78098?d=mp&s=160"},"body":"This was a clean-new Lion install, not an upgrade. I just installed\nXcode on alternate location /Developer41 instead of /Developer\n\nYes, I did a `make clean` but it has no effect.\n\nThe problem is that on Lion there is no config.h in the perl\ndirectory, only a perl.h file.\n-- \nSorin Sbarnea\n\nOn Fri, Aug 19, 2011 at 21:58, David Aguilar <davvid@gmail.com> wrote:\n> On Aug 19, 2011, at 9:31 AM, Sorin Sbarnea <sorin.sbarnea@gmail.com> wrote:\n>\n>> Hi,\n>>\n>> I came across the following problem while trying to build git (1.7.6) on Lion\n>> https://github.com/mxcl/homebrew/issues/7091\n>>\n>> The only files existing in\n>> /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/ are\n>> libperl.dylib andperl.h.\n>>\n>> make[2]: *** No rule to make target\n>> `/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h',\n>> needed by `perl.mak'.  Stop.\n>> make[1]: *** [instlibdir] Error 2\n>>\n>> If possible it would be a good idea to continue the discussion on\n>> homebrew bug tracker\n>>\n>> Thanks,\n>> --\n>> Sorin Sbarnea\n>\n> Did you upgrade to lion from a system where you were building previously? Did you try \"make clean\"?\n>\n> --\n>                                        David\n"},{"id":"173891","messageId":"201108200012.17580.trast@student.ethz.ch","threadId":"28164","inReplyTo":"CAGDPfJoG_ksfL5vqzGWe5jqW646CKB=Qxm9_G5d=ZHMWfixweA@mail.gmail.com","subject":"Re: Unable to build git on Lion - missing config.h from Perl header files","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2011-08-19T22:12:17Z","receivedAt":"2011-08-19T22:12:17Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Sorin Sbarnea wrote:\n> This was a clean-new Lion install, not an upgrade. I just installed\n> Xcode on alternate location /Developer41 instead of /Developer\n> \n> Yes, I did a `make clean` but it has no effect.\n> \n> The problem is that on Lion there is no config.h in the perl\n> directory, only a perl.h file.\n\nColor me puzzled, but where is it getting the config.h idea from?\n\n  $ git grep config\\\\.h\n  compat/fnmatch/fnmatch.c:# include <config.h>\n  compat/regex/regex.c:#include \"config.h\"\n  t/t4014-format-patch.sh:test_expect_success '--no-add-headers overrides config.headers' '\n\nSimilarly, 'git grep config perl' only turns up matches in perl code.\nSo what tells it to use config.h?\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"},{"id":"173894","messageId":"6LbwaepC5kIygT8uWl1Wf2A7S_AD1YkTya7FLCpDK4LOS7CNxjOveFLpzZtHv0dg_JJ8l78oW6XVugLUDAHkvBFItwH2yzYH6BgRAAZkFuM@cipher.nrlssc.navy.mil","threadId":"28164","inReplyTo":"201108200012.17580.trast@student.ethz.ch","subject":"Re: Unable to build git on Lion - missing config.h from Perl header files","fromName":"Brandon Casey","fromEmail":"brandon.casey.ctr@nrlssc.navy.mil","sentAt":"2011-08-19T22:19:11Z","receivedAt":"2011-08-19T22:19:11Z","isPatch":false,"sender":{"key":"brandon.casey.ctr@nrlssc.navy.mil","avatar":null},"body":"On 08/19/2011 05:12 PM, Thomas Rast wrote:\n> Sorin Sbarnea wrote:\n>> This was a clean-new Lion install, not an upgrade. I just installed\n>> Xcode on alternate location /Developer41 instead of /Developer\n>>\n>> Yes, I did a `make clean` but it has no effect.\n>>\n>> The problem is that on Lion there is no config.h in the perl\n>> directory, only a perl.h file.\n> \n> Color me puzzled, but where is it getting the config.h idea from?\n> \n>   $ git grep config\\\\.h\n>   compat/fnmatch/fnmatch.c:# include <config.h>\n>   compat/regex/regex.c:#include \"config.h\"\n>   t/t4014-format-patch.sh:test_expect_success '--no-add-headers overrides config.headers' '\n> \n> Similarly, 'git grep config perl' only turns up matches in perl code.\n> So what tells it to use config.h?\n\nProbably MakeMaker.\n\nSetting NO_PERL_MAKEMAKER may help:\n\n   rm perl/perl.mak\n   make NO_PERL_MAKEMAKER=1\n\n-Brandon\n"},{"id":"173893","messageId":"CAGDPfJpSVknybUjUsHkb1Mb8_SqQxJB2idRTxxfsT8eRSA91CQ@mail.gmail.com","threadId":"28164","inReplyTo":"6LbwaepC5kIygT8uWl1Wf2A7S_AD1YkTya7FLCpDK4LOS7CNxjOveFLpzZtHv0dg_JJ8l78oW6XVugLUDAHkvBFItwH2yzYH6BgRAAZkFuM@cipher.nrlssc.navy.mil","subject":"Re: Unable to build git on Lion - missing config.h from Perl header files","fromName":"Sorin Sbarnea","fromEmail":"sorin.sbarnea@gmail.com","sentAt":"2011-08-19T22:27:22Z","receivedAt":"2011-08-19T22:27:22Z","isPatch":false,"sender":{"key":"sorin.sbarnea@gmail.com","avatar":"https://gravatar.com/avatar/4bbe150743a337946af2b77304be17ef446786eaef34bbebbd04806e56d78098?d=mp&s=160"},"body":"I confirm that this workaround solved the problem. Now the question is\nwhat should be changed so git will be installed (and build) without\nproblems by homebrew?\n\nThanks\nSorin Sbarnea\n\n\nOn Fri, Aug 19, 2011 at 23:19, Brandon Casey\n<brandon.casey.ctr@nrlssc.navy.mil> wrote:\n> On 08/19/2011 05:12 PM, Thomas Rast wrote:\n>> Sorin Sbarnea wrote:\n>>> This was a clean-new Lion install, not an upgrade. I just installed\n>>> Xcode on alternate location /Developer41 instead of /Developer\n>>>\n>>> Yes, I did a `make clean` but it has no effect.\n>>>\n>>> The problem is that on Lion there is no config.h in the perl\n>>> directory, only a perl.h file.\n>>\n>> Color me puzzled, but where is it getting the config.h idea from?\n>>\n>>   $ git grep config\\\\.h\n>>   compat/fnmatch/fnmatch.c:# include <config.h>\n>>   compat/regex/regex.c:#include \"config.h\"\n>>   t/t4014-format-patch.sh:test_expect_success '--no-add-headers overrides config.headers' '\n>>\n>> Similarly, 'git grep config perl' only turns up matches in perl code.\n>> So what tells it to use config.h?\n>\n> Probably MakeMaker.\n>\n> Setting NO_PERL_MAKEMAKER may help:\n>\n>   rm perl/perl.mak\n>   make NO_PERL_MAKEMAKER=1\n>\n> -Brandon\n>\n"},{"id":"173895","messageId":"7vk4a910rd.fsf@alter.siamese.dyndns.org","threadId":"28164","inReplyTo":"CAGDPfJpSVknybUjUsHkb1Mb8_SqQxJB2idRTxxfsT8eRSA91CQ@mail.gmail.com","subject":"Re: Unable to build git on Lion - missing config.h from Perl header files","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2011-08-19T22:42:46Z","receivedAt":"2011-08-19T22:42:46Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Sorin Sbarnea <sorin.sbarnea@gmail.com> writes:\n\n> On Fri, Aug 19, 2011 at 23:19, Brandon Casey\n>> Probably MakeMaker.\n>>\n>> Setting NO_PERL_MAKEMAKER may help:\n>>\n>>   rm perl/perl.mak\n>>   make NO_PERL_MAKEMAKER=1\n>>\n> I confirm that this workaround solved the problem. Now the question is\n> what should be changed so git will be installed (and build) without\n> problems by homebrew?\n\nIf the user's distro does not have packaged makemaker, or if the user\nchooses not to install it, then the build procedure of git can be told to\navoid using it, which is what you did. So there is nothing to fix there.\n\nIf you are not going to tell git to avoid makemaker, in other words, if\nyou want to use makemaker, then installing it before starting the build\nprocedure would help, too. But that is outside the scope of git project.\n\nPlease do not top post.\n"},{"id":"173897","messageId":"3TtrXbFVbVBpoFp03GzorAbFk1nah9JWGbzZoev7ibqE4phUwUuQOxugdF7MaGB4A7t5rxO6zbw9rxO2xRnaY15F4dNLwBGhb-XCgbYKZ1E@cipher.nrlssc.navy.mil","threadId":"28164","inReplyTo":"7vk4a910rd.fsf@alter.siamese.dyndns.org","subject":"Re: Unable to build git on Lion - missing config.h from Perl header files","fromName":"Brandon Casey","fromEmail":"brandon.casey.ctr@nrlssc.navy.mil","sentAt":"2011-08-19T22:57:24Z","receivedAt":"2011-08-19T22:57:24Z","isPatch":false,"sender":{"key":"brandon.casey.ctr@nrlssc.navy.mil","avatar":null},"body":"On 08/19/2011 05:42 PM, Junio C Hamano wrote:\n> Sorin Sbarnea <sorin.sbarnea@gmail.com> writes:\n> \n>> On Fri, Aug 19, 2011 at 23:19, Brandon Casey\n>>> Probably MakeMaker.\n>>>\n>>> Setting NO_PERL_MAKEMAKER may help:\n>>>\n>>>   rm perl/perl.mak\n>>>   make NO_PERL_MAKEMAKER=1\n>>>\n>> I confirm that this workaround solved the problem. Now the question is\n>> what should be changed so git will be installed (and build) without\n>> problems by homebrew?\n> \n> If the user's distro does not have packaged makemaker, or if the user\n> chooses not to install it, then the build procedure of git can be told to\n> avoid using it, which is what you did. So there is nothing to fix there.\n> \n> If you are not going to tell git to avoid makemaker, in other words, if\n> you want to use makemaker, then installing it before starting the build\n> procedure would help, too. But that is outside the scope of git project.\n\nI got the impression that his system did have makemaker, and that it\ncreated the perl.mak file, but then building git failed because some\nheader files were missing from his perl installation.\n\nEarlier he said:\n\n>> The only files existing in\n>> /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/ are\n>> libperl.dylib andperl.h.\n\nI don't have access to a mac, but on my system I have many header files\nin .../x86_64-linux-thread-multi/CORE/ including config.h.  These files\nare part of the base perl installation rpm (i.e. not some -devel rpm).\n\nBut like you said, there is nothing to fix on the git side of things.\n\n-Brandon\n"}]}