Unable to Install Git 2.18.0 in RHEL


I am trying to install Git 2.18.0 into my RHEL box. Due to the proxy setting of the environment I am working at, I would have to install it from the source (tarball), and I attempted to do so via the method below:

$ tar -zxf git-2.18.0.tar.gz
$ cd git-2.18.0
$ make configure
$ ./configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info

I had several issues going through the steps, but I am currently stuck at the ‘make all doc info’ step. Running the command gave me the following error:

(UAT) test1@devecpvm001234$ sudo make all doc info
    AR libgit.a
    AR xdiff/lib.a
    LINK git-credential-store
gcc: error: libgit.a: No such file or directory
gcc: error: xdiff/lib.a: No such file or directory

I have also looked into the Makefile file, and found the following (although I’m not sure how relevant this is to the issue):

LIB_FILE = libgit.a
XDIFF_LIB = xdiff/lib.a
VCSSVN_LIB = vcs-svn/lib.a

Does anyone know how to get around this? Your advises would be much appreciated.

Thank you!


Hi @hendrickh,

Thanks for being part of the GitHub Community Forum! We’re glad you’re here.

I wanted to jump in here, and mention that if you don’t get the help you’re looking for from this particular community, you might want to try getting help somewhere that focuses on Git specifically. It’s definitely possible another GitHub user might have run into this same issue and can help, but the GitHub Community Forum focuses primarily on topics related to GitHub itself or collaboration on project development and ideas. We want to make sure you’re getting the best support you can, but this forum may not be the right place for this particular topic.

Best of luck!

1 Like

Thanks @nadiajoyce for the recommendation! Will look for the forums that focus on Git as you mentioned.