# Fwd: Compiling git 1.8.1.4 on 64bit centos 5.6

2 messages from 2013-02-23 to 2013-02-23. Participants: Darren Oakey, W. Trevor King.
Thread: https://gitlist.dev/t/32984

## Darren Oakey, 2013-02-23 13:13

Subject: Fwd: Compiling git 1.8.1.4 on 64bit centos 5.6
Message-ID: <CA+B9=JLaZ5P+H-b-A6Xo-TRMcQYwGawjD-G62m8asnC0qMwmdg@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2BB9%3DJLaZ5P%2BH-b-A6Xo-TRMcQYwGawjD-G62m8asnC0qMwmdg%40mail.gmail.com
In-Reply-To: <CA+B9=JLWASmrK_TNTkJxRH1cZrVjhXN8kKmCZcnHgKXwX9WUiA@mail.gmail.com>

```
g'day,
got a web host where I want to put git - it has no c compiler, so I
have to compile elsewhere.    ssh is also locked out, so I have to use
https.         The site uses both 64bit and 32bit hosts.

On a 32bit vm, I compiled the 32bit version of git fine with -static,
sent the binaries over, and it works perfectly.

On a 64bit vm, I just cannot get a 64 bit version of git compiling
with -static...  or more precisely - I can but can't whatever I have
tried get a remote-http and remote-https to turn up in libexec.
Even when I hack the configure to force NO_CURL=  and NO_OPENSSL=   -
and add every extra library I seem to need   (-lcrypto, -lssl -lkrb5
-ldl) it refuses to compile - giving me a bunch of missing krb5_*

If I compile without static, it works - but the shared libraries
aren't found when it's run from the web host.  If I try running the
32bit version on the 64bit host, it doesn't find some library - and if
I try the 64bit version that I can properly get compiling statically,
I get an error saying no remote found for https.

Please help - it's driving me insane... can anyone tell me how to
compile a 64 bit static version of git under centos 5.6?

Thanks,
Darren

```

## W. Trevor King, 2013-02-23 15:44

Subject: Re: Fwd: Compiling git 1.8.1.4 on 64bit centos 5.6
Message-ID: <20130223154448.GB32406@odin.tremily.us>
URL: https://gitlist.dev/e/20130223154448.GB32406%40odin.tremily.us
In-Reply-To: <CA+B9=JLaZ5P+H-b-A6Xo-TRMcQYwGawjD-G62m8asnC0qMwmdg@mail.gmail.com>

```
On Sun, Feb 24, 2013 at 12:13:11AM +1100, Darren Oakey wrote:
> If I compile without static, it works - but the shared libraries
> aren't found when it's run from the web host.  If I try running the
> 32bit version on the 64bit host, it doesn't find some library

This is a shot in the dark, but are you sure you have static versions
of the libraries in questions (*.a) installed?

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

```
