Building GIT on older systems.
From: Tim Schumacher <hidden>
Date: 2016-06-15 22:53:11
Hi All,
After a long battle trying to get git to compile on my dev boxes I am
seeking help from the gurus... I have an old system, redhat linux
7.3, with a 2.4.18 kernel with gcc 2.96 toolchain. Unfortuneatly,
upgrading is not currently an option.
I have figured out so far that I can run the command
make NO_NSEC=true
to get past the time struct compile error.
After that, I was able to hand edit the Makefile to set
BASIC_LDFLAGS = -ldl
so linking the git-imap-send program succeeds (was failing to link
against this library for some reason...). I tried to run configure
with these options, but it did not seem to take, only setting
NO_NSEC=true to the make command line seems to work.
Anyway, now I get to the point in the build where it goes into the
perl subdir and fails with:
SUBDIR perl
/bin/sh: -c: line 3: syntax error near unexpected token
`"s<\Q++LOCALEDIR++\E></'
/bin/sh: -c: line 3: ` -e "pm_to_blib({qw{Git/I18N.pm
blib/lib/Git/I18N.pm private-Error.pm blib/lib/Error.pm Git.pm
blib/lib/Git.pm}},'blib/lib/auto','/usr/bin/perl -pe
"s<\Q++LOCALEDIR++\E></usr/local/git-1.7.9.2/share/locale>"')"'
make[2]: *** [pm_to_blib] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
A couple questions I have so far:
(1) how can I make make output the actual command it is executing so
I can try to debug things more quickly?
(2) how can I configure the Makefile to automatically set -ldl as
well as the NO_NSEC flag?
(3) My perl -v output: This is perl, v5.6.1 built for i386-linux. Is
this sufficient?
Any help is greatly appreciated!
Thanks,
Tim