* Unable to build git on Lion - missing config.h from Perl header files [not found] <611AB1F99D784B92B1F7278139D6EED5@gmail.com> @ 2011-08-19 16:31 ` Sorin Sbarnea 2011-08-19 20:58 ` David Aguilar 0 siblings, 1 reply; 8+ messages in thread From: Sorin Sbarnea @ 2011-08-19 16:31 UTC (permalink / raw) To: git Hi, I came across the following problem while trying to build git (1.7.6) on Lion https://github.com/mxcl/homebrew/issues/7091 The only files existing in /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/ are libperl.dylib andperl.h. make[2]: *** No rule to make target `/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h', needed by `perl.mak'. Stop. make[1]: *** [instlibdir] Error 2 If possible it would be a good idea to continue the discussion on homebrew bug tracker Thanks, -- Sorin Sbarnea ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unable to build git on Lion - missing config.h from Perl header files 2011-08-19 16:31 ` Unable to build git on Lion - missing config.h from Perl header files Sorin Sbarnea @ 2011-08-19 20:58 ` David Aguilar 2011-08-19 21:43 ` Sorin Sbarnea 0 siblings, 1 reply; 8+ messages in thread From: David Aguilar @ 2011-08-19 20:58 UTC (permalink / raw) To: Sorin Sbarnea; +Cc: git@vger.kernel.org On Aug 19, 2011, at 9:31 AM, Sorin Sbarnea <sorin.sbarnea@gmail.com> wrote: > Hi, > > I came across the following problem while trying to build git (1.7.6) on Lion > https://github.com/mxcl/homebrew/issues/7091 > > The only files existing in > /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/ are > libperl.dylib andperl.h. > > make[2]: *** No rule to make target > `/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h', > needed by `perl.mak'. Stop. > make[1]: *** [instlibdir] Error 2 > > If possible it would be a good idea to continue the discussion on > homebrew bug tracker > > Thanks, > -- > Sorin Sbarnea Did you upgrade to lion from a system where you were building previously? Did you try "make clean"? -- David ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unable to build git on Lion - missing config.h from Perl header files 2011-08-19 20:58 ` David Aguilar @ 2011-08-19 21:43 ` Sorin Sbarnea 2011-08-19 22:12 ` Thomas Rast 0 siblings, 1 reply; 8+ messages in thread From: Sorin Sbarnea @ 2011-08-19 21:43 UTC (permalink / raw) To: David Aguilar; +Cc: git@vger.kernel.org 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. -- Sorin Sbarnea On Fri, Aug 19, 2011 at 21:58, David Aguilar <davvid@gmail.com> wrote: > On Aug 19, 2011, at 9:31 AM, Sorin Sbarnea <sorin.sbarnea@gmail.com> wrote: > >> Hi, >> >> I came across the following problem while trying to build git (1.7.6) on Lion >> https://github.com/mxcl/homebrew/issues/7091 >> >> The only files existing in >> /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/ are >> libperl.dylib andperl.h. >> >> make[2]: *** No rule to make target >> `/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h', >> needed by `perl.mak'. Stop. >> make[1]: *** [instlibdir] Error 2 >> >> If possible it would be a good idea to continue the discussion on >> homebrew bug tracker >> >> Thanks, >> -- >> Sorin Sbarnea > > Did you upgrade to lion from a system where you were building previously? Did you try "make clean"? > > -- > David ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unable to build git on Lion - missing config.h from Perl header files 2011-08-19 21:43 ` Sorin Sbarnea @ 2011-08-19 22:12 ` Thomas Rast 2011-08-19 22:19 ` Brandon Casey 0 siblings, 1 reply; 8+ messages in thread From: Thomas Rast @ 2011-08-19 22:12 UTC (permalink / raw) To: Sorin Sbarnea; +Cc: David Aguilar, git@vger.kernel.org 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? -- Thomas Rast trast@{inf,student}.ethz.ch ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unable to build git on Lion - missing config.h from Perl header files 2011-08-19 22:12 ` Thomas Rast @ 2011-08-19 22:19 ` Brandon Casey 2011-08-19 22:27 ` Sorin Sbarnea 0 siblings, 1 reply; 8+ messages in thread From: Brandon Casey @ 2011-08-19 22:19 UTC (permalink / raw) To: Thomas Rast; +Cc: Sorin Sbarnea, David Aguilar, git@vger.kernel.org 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unable to build git on Lion - missing config.h from Perl header files 2011-08-19 22:19 ` Brandon Casey @ 2011-08-19 22:27 ` Sorin Sbarnea 2011-08-19 22:42 ` Junio C Hamano 0 siblings, 1 reply; 8+ messages in thread From: Sorin Sbarnea @ 2011-08-19 22:27 UTC (permalink / raw) To: Brandon Casey; +Cc: Thomas Rast, David Aguilar, git@vger.kernel.org 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: > 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 > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unable to build git on Lion - missing config.h from Perl header files 2011-08-19 22:27 ` Sorin Sbarnea @ 2011-08-19 22:42 ` Junio C Hamano 2011-08-19 22:57 ` Brandon Casey 0 siblings, 1 reply; 8+ messages in thread From: Junio C Hamano @ 2011-08-19 22:42 UTC (permalink / raw) To: Sorin Sbarnea Cc: Brandon Casey, Thomas Rast, David Aguilar, git@vger.kernel.org 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. Please do not top post. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unable to build git on Lion - missing config.h from Perl header files 2011-08-19 22:42 ` Junio C Hamano @ 2011-08-19 22:57 ` Brandon Casey 0 siblings, 0 replies; 8+ messages in thread From: Brandon Casey @ 2011-08-19 22:57 UTC (permalink / raw) To: Junio C Hamano Cc: Sorin Sbarnea, Thomas Rast, David Aguilar, git@vger.kernel.org On 08/19/2011 05:42 PM, Junio C Hamano wrote: > 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-08-19 22:57 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <611AB1F99D784B92B1F7278139D6EED5@gmail.com> 2011-08-19 16:31 ` Unable to build git on Lion - missing config.h from Perl header files Sorin Sbarnea 2011-08-19 20:58 ` David Aguilar 2011-08-19 21:43 ` Sorin Sbarnea 2011-08-19 22:12 ` Thomas Rast 2011-08-19 22:19 ` Brandon Casey 2011-08-19 22:27 ` Sorin Sbarnea 2011-08-19 22:42 ` Junio C Hamano 2011-08-19 22:57 ` Brandon Casey
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).