Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error on Git 2.0.1 on Redhat 5.9 with Fix #11

Closed
tenthousandfailures opened this issue Jul 2, 2014 · 2 comments
Closed

Compile Error on Git 2.0.1 on Redhat 5.9 with Fix #11

tenthousandfailures opened this issue Jul 2, 2014 · 2 comments

Comments

@tenthousandfailures
Copy link

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" (which does exist in Redhat) does.

> /usr/bin/ar --version
GNU ar 2.17.50.0.6-20.el5_8.3 20061020
Copyright 2005 Free Software Foundation, Inc.
@peff
Copy link
Member

peff commented Jul 2, 2014

This isn't really the right place to report issues like this; you should probably post to the mailing list instead.

That being said, I do not think it is git itself that is specifying gar here. The Makefile uses ar as the default unless it is overridden by the environment, by config.mak, or possibly by running configure (though one would presume configure would get it right).

@tenthousandfailures
Copy link
Author

wrong place for this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants