# Can't build git on Lion?

5 messages from 2011-07-28 to 2011-07-30. Participants: Jonathan del Strother, Jack Nagel, David Aguilar, Shigeya Suzuki.
Thread: https://gitlist.dev/t/27942

## Jonathan del Strother, 2011-07-28 07:59

Subject: Can't build git on Lion?
Message-ID: <CAF5DW8+efO0jcynyhg3GCZc5JByHwQzudqtrJXF87YazYjF2mw@mail.gmail.com>
URL: https://gitlist.dev/e/CAF5DW8%2BefO0jcynyhg3GCZc5JByHwQzudqtrJXF87YazYjF2mw%40mail.gmail.com

```
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, 2011-07-28 12:19

Subject: Re: Can't build git on Lion?
Message-ID: <loom.20110728T141556-724@post.gmane.org>
URL: https://gitlist.dev/e/loom.20110728T141556-724%40post.gmane.org
In-Reply-To: <CAF5DW8+efO0jcynyhg3GCZc5JByHwQzudqtrJXF87YazYjF2mw@mail.gmail.com>

```
> 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, 2011-07-29 06:38

Subject: Re: Can't build git on Lion?
Message-ID: <20110729063812.GA64045@gmail.com>
URL: https://gitlist.dev/e/20110729063812.GA64045%40gmail.com
In-Reply-To: <loom.20110728T141556-724@post.gmane.org>

```
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.
-- 
					David

```

## Jonathan del Strother, 2011-07-29 18:51

Subject: Re: Can't build git on Lion?
Message-ID: <CAF5DW8+9ketSNULU67YwY7QDqMSLrOGQAXXodD9Dr2p-ivWo6w@mail.gmail.com>
URL: https://gitlist.dev/e/CAF5DW8%2B9ketSNULU67YwY7QDqMSLrOGQAXXodD9Dr2p-ivWo6w%40mail.gmail.com
In-Reply-To: <20110729063812.GA64045@gmail.com>

```
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.

```

## Shigeya Suzuki, 2011-07-30 02:47

Subject: Re: Can't build git on Lion?
Message-ID: <4E3370BF.6070504@wide.ad.jp>
URL: https://gitlist.dev/e/4E3370BF.6070504%40wide.ad.jp
In-Reply-To: <CAF5DW8+9ketSNULU67YwY7QDqMSLrOGQAXXodD9Dr2p-ivWo6w@mail.gmail.com>

```
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:
> 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

```
