CentOS6 搭建git

rpm -qa | grep zlib-devel  查看是否安装过

-----------------------------------------------------------------------------------------------

yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel
yum install curl-devel
yum install autoconf
wget <a href="http://git-core.googlecode.com/files/git-1.8.3.2.tar.gz">http://git-core.googlecode.com/files/git-1.8.3.2.tar.gz</a>
chmod +x git-1.8.3.2.tar.gz
tar xzvf git-1.8.3.2.tar.gz
cd git-1.8.3.2
autoconf
./configure --with-curl=/opt/git
make
make install

-----------------------------------------------------------------------------------------------

yum -y install git   安装git

-----------------------------------------------------------------------------------------------

git version   安装成功后查看git版本

你可能感兴趣的:(centos6)