git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Compile Error on Git 2.0.1 on Redhat 5.9 with Fix

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jul 2, 2014, 16:25 UTC
Message-ID
<vpqtx6z4tih.fsf@anie.imag.fr>
In-Reply-To
<CAH5EwqY8D=CGxB+rZvwPH5115r9qmRCBBvJMG_o0962d4Uquxw@mail.gmail.com>
Eldon Nelson <eldon_nelson@ieee.org> writes:
Show 8 quoted lines
> 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
[...]
> I think the fix is to allow the use of "ar" if "gar" does not exist.

It is already the case. The Makefile defaults to "ar" and does not even contain any mention of "gar". The configure script checks for both:

configure.ac:AC_CHECK_TOOLS(AR, [gar ar], :)

My guess is that you ran the configure script on a machine where gar is present, and then used the result on a machine where it isn't.

Normally, at configure time you should see this:
checking for ar... ar

You actually don't need to run the configure script, the Makefile runs fine without it. Delete config.mak.autogen to cancel the effect of ./configure.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Eldon NelsonNext: Jeff King
Message 2 of 4 in “Compile Error on Git 2.0.1 on Redhat 5.9 with Fix”
  1. Eldon NelsonJul 2, 2014
  2. Matthieu MoyJul 2, 2014
  3. Jeff KingJul 2, 2014
  4. Eldon NelsonJul 3, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.