git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Compile Error on Git 2.0.1 on Redhat 5.9 with Fix
@ 2014-07-02 15:56 Eldon Nelson
  2014-07-02 16:25 ` Matthieu Moy
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eldon Nelson @ 2014-07-02 15:56 UTC (permalink / raw)
  To: git

When compiling Git 2.0.1 on RedHat 5.9 as a non-root user I get the
following error:

BUILD ERROR

```
make prefix=/home/eldon/local all doc info
...
    CC zlib.o
    CC unix-socket.o
    CC thread-utils.o
    CC compat/strlcpy.o
    AR libgit.a
/bin/sh: gar: command not found
make: *** [libgit.a] Error 127
```

My fix was to make a symlink below:

SYMLINK

```
gar -> /usr/bin/ar
```

LINUX VERSION

```
> lsb_release -i -r
Distributor ID: RedHatEnterpriseClient
Release:        5.9
```

I think the fix is to allow the use of "ar" if "gar" does not exist. I
don't know if this exists for every Redhat install but "gar" is not
available in /usr/bin but "ar" does.

```
> /usr/bin/ar --version
GNU ar 2.17.50.0.6-20.el5_8.3 20061020
Copyright 2005 Free Software Foundation, Inc.
```

It could just be my corporate install of RedHat that is weird, but
thought this might be at least a point to describe a fix.

```
gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)
Copyright (C) 2006 Free Software Foundation, Inc.
```

~~~~~~~~~~~~
Eldon Nelson
eldon_nelson@ieee.org
Cell: 952-393-3481

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-03 20:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-02 15:56 Compile Error on Git 2.0.1 on Redhat 5.9 with Fix Eldon Nelson
2014-07-02 16:25 ` Matthieu Moy
2014-07-02 16:29 ` Jeff King
2014-07-03 20:13 ` Eldon Nelson

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