threads / discuss / 27942

Can't build git on Lion?

Subject: Can't build git on Lion?

## tl;dr

5 messages between Jul 28, 2011 and Jul 30, 2011.

replies: 4people: 4as markdown or json

Jonathan del Strother· Jul 28, 2011, 07:59 UTC · lore
Heya,
I've upgraded my OS X machine from 10.6 to 10.7 (Lion), and seem to be
no longer able to build git.  Running 'make' results in:
    GEN git-add--interactive
make[2]: *** No rule to make target
`/System/Library/Perl/5.10.0/darwin-thread-multi-2level/Config.pm',
needed by `perl.mak'.  Stop.
make[1]: *** [instlibdir] Error 2
make: *** [git-add--interactive] Error 2

There's no /System/Library/Perl/5.10.0 directory, but there is a 5.10 directory. Symlinking that to 5.10.0 gives me :

    GEN git-add--interactive
Writing perl.mak for Git
make[2]: *** [perl.mak] Error 1
make[1]: *** [instlibdir] Error 2
make: *** [git-add--interactive] Error 2

Running 'perl -v' shows I'm running v5.12.3. Where is that "/System/Library/Perl/5.10.0/darwin-thread-multi-2level/Config.pm" path obtained from? Any other information I can provide?

-Jonathan
Jack Nagel· Jul 28, 2011, 12:19 UTC · re: Jonathan del Strother · lore

Re: Can't build git on Lion?

> There's no /System/Library/Perl/5.10.0 directory, but there is a 5.10
> directory.  Symlinking that to 5.10.0 gives me :

I've seen this issue pop up serveral times in the last few days in various places; the solution is to install (or re-install) XCode as the installation does not persist correctly across upgrades. Versions prior to 4.1 are incompatible with Lion; also, after you download it from the App Store, make sure that you run the "XCode Installer" app that is placed in your Applications folder.

David Aguilar· Jul 29, 2011, 06:38 UTC · re: Jack Nagel · lore

Re: Can't build git on Lion?

On Thu, Jul 28, 2011 at 12:19:01PM +0000, Jack Nagel wrote:
Show 9 quoted lines
> > There's no /System/Library/Perl/5.10.0 directory, but there is a 5.10
> > directory.  Symlinking that to 5.10.0 gives me :
> 
> I've seen this issue pop up serveral times in the last few days in various 
> places; the solution is to install (or re-install) XCode as the installation 
> does not persist correctly across upgrades. Versions prior to 4.1 are 
> incompatible with Lion; also, after you download it from the App Store, make 
> sure that you run the "XCode Installer" app that is placed in your 
> Applications folder.

The last time I saw this error it was because the Perl version changed. "make clean" fixed it for me. YMMV.

-- 
					David
Jonathan del Strother· Jul 29, 2011, 18:51 UTC · re: David Aguilar · lore

Re: Can't build git on Lion?

On 29 July 2011 07:38, David Aguilar <davvid@gmail.com> wrote:
Show 13 quoted lines
> On Thu, Jul 28, 2011 at 12:19:01PM +0000, Jack Nagel wrote:
>> > There's no /System/Library/Perl/5.10.0 directory, but there is a 5.10
>> > directory.  Symlinking that to 5.10.0 gives me :
>>
>> I've seen this issue pop up serveral times in the last few days in various
>> places; the solution is to install (or re-install) XCode as the installation
>> does not persist correctly across upgrades. Versions prior to 4.1 are
>> incompatible with Lion; also, after you download it from the App Store, make
>> sure that you run the "XCode Installer" app that is placed in your
>> Applications folder.
>
> The last time I saw this error it was because the Perl version
> changed.  "make clean" fixed it for me.  YMMV.
Oh, good point.  Yes, 'make clean' fixed things, thanks for the tip.
Shigeya Suzuki· Jul 30, 2011, 02:47 UTC · re: Jonathan del Strother · lore

Re: Can't build git on Lion?

Just for info, I have successfully built v1.7.6 on both Xcode 4.1 and 4.2, both on Lion.

shigeya
On 2011/07/30 3:51, Jonathan del Strother wrote:
Show 20 quoted lines
> On 29 July 2011 07:38, David Aguilar <davvid@gmail.com> wrote:
>> On Thu, Jul 28, 2011 at 12:19:01PM +0000, Jack Nagel wrote:
>>>> There's no /System/Library/Perl/5.10.0 directory, but there is a 5.10
>>>> directory.  Symlinking that to 5.10.0 gives me :
>>>
>>> I've seen this issue pop up serveral times in the last few days in various
>>> places; the solution is to install (or re-install) XCode as the installation
>>> does not persist correctly across upgrades. Versions prior to 4.1 are
>>> incompatible with Lion; also, after you download it from the App Store, make
>>> sure that you run the "XCode Installer" app that is placed in your
>>> Applications folder.
>>
>> The last time I saw this error it was because the Perl version
>> changed.  "make clean" fixed it for me.  YMMV.
> 
> Oh, good point.  Yes, 'make clean' fixed things, thanks for the tip.
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

← back to recent threads