Installing git with no idea about machine configuration

Solution 1:

I'm that guy :-)

Here is small howto and info what we did.

First we tried executing git binary from the latest Ubuntu server which returned glibc error that Dave copied above.

Then with the help of command ldd --version we found which glibc is installed on the server and what distribution is it.

Here is the list of glibc versions and Linux distributions that have them

http://en.wikipedia.org/wiki/GNU_C_Library

So Glibc 2.5 gave us a clue that RHEL 5 is used on the server, so next step was to find propper git.rpm file, google gave us repo http://pkgs.repoforge.org/git/ and to unpack it without installation as we don't have privileges for that.

As a result we got git bin which worked directly so after settng path everything was fixed.

Glad that I could help :-)

Solution 2:

SUCCESS! With the help of a guy on Twitter, I was able to figure this out.

I found some rpms for git online, but when trying to execute them, I got things like this:

./git: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by ./git)

So my version of libc wasn't what git was looking for. So, what version of C do I have?

$ ldd --version                                                                                                                                                                   
ldd (GNU libc) 2.5
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

I have 2.5. This also means that I'm running on Red Hat Enterprise Linux 5. So now it's off to find the rpm for 64-bit git on RHEL5. Here it is: http://pkgs.repoforge.org/git/git-1.7.9.6-1.el5.rf.x86_64.rpm

I downloaded that and unpacked it using The Unarchiver (for rpm => cpio conversion) and Archiver (for cpio extraction). I then uploaded the resulting git folder to ~/bin. I fixed up my $PATH to point to the new stuff:

PATH=$PATH:$HOME/bin/git/usr/bin

And now it works great!

Solution 3:

i think what you need is a static binary of git.

i found this link: http://www.lyraphase.com/wp/uncategorized/how-to-build-git-for-a-host-with-no-compiler/