threads / discuss / 32984

Fwd: Compiling git 1.8.1.4 on 64bit centos 5.6

Subject: Fwd: Compiling git 1.8.1.4 on 64bit centos 5.6

## tl;dr

2 messages between Feb 23, 2013 and Feb 23, 2013.

replies: 1people: 2as markdown or json

Darren Oakey· Feb 23, 2013, 13:13 UTC · lore

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· Feb 23, 2013, 15:44 UTC · re: Darren Oakey · lore

Re: Fwd: Compiling git 1.8.1.4 on 64bit centos 5.6

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

← back to recent threads