Git源码安装

1. 下载源码

wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz

2.解压

tar xzvf git-latest.tar.gz


3. 安装依赖包

yum install curl
yum install curl-devel
yum install zlib-devel
yum install openssl-devel
yum install perl
yum install cpio
yum install expat-devel
yum install gettext-devel

yum install perl-ExtUtils-MakeMaker package.


4.安装

cd git-xxxx-xx-xx
autoconf
./configure
make
make install


你可能感兴趣的:(Git源码安装)