For my Red Hat Git install I opted for a simpler, no-documentation installation (for notes on installing the documentation see "Installing Git 126.96.36.199 on Mac OS X Tiger"). Note that although Red Hat Enterprise Linux already has a copy of the Expat library installed (in
/usr/lib/) I decided to download the latest version and install it under
# get source for Expat dependency from: # http://sourceforge.net/projects/expat/ wget http://surfnet.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gz # extract tar xzvf expat-2.0.1.tar.gz cd expat-2.0.1 # build ./configure make make check sudo make install # grab the source from the Git homepage: # http://git.or.cz/ wget http://kernel.org/pub/software/scm/git/git-188.8.131.52.tar.bz2 # extract source tar xjvf git-184.108.40.206.tar.bz2 cd git-220.127.116.11 # build make prefix=/usr/local all # run tests make prefix=/usr/local test echo $? # install unset CDPATH sudo make prefix=/usr/local install
My first attempt at installing didn't work because of a period in my
CDPATH environment variable; to avoid such problems in the future I
unset the variable and removed the corresponding
export from my
CDATH should be set via normal assignment only and not exported).