Tay Ray Chuan home archive

building git on sunfire

Sun, 22 Jan 2012 16:31:48 +0800 | Filed under nus soc sunfire

You might have noticed that sunfire provides a measly git v1.5.5.1, which is 4 years old. Here's how you can build a recent one:

  1. wget the latest git tarball
  2. gtar -zxf git-... (where gtar is GNU tar, and -z is the GNU-specific gzip switch)
  3. gmake install \
    prefix=~/installed \
    CFLAGS='-I/usr/sfw/include' \
    CURLDIR='~/installed' \
    NO_TCLTK=1
    I assumed that a recent curl (again, the 5-year-old curl provided is insufficient) has been built and installed.

Your sprightly version of git should now be available at ~/installed. Add to PATH to taste.

blog comments powered by Disqus