centos 安装 git

先安装依赖包
yum install -y curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel

cd /usr/local/src/ wget http://git-core.googlecode.com/files/git-1.7.10.tar.gz tar -zxvf git-1.7.10.tar.gz cd git-1.7.10 autoconf ./configure --prefix /usr/local/git1.8 make make install git --version




 

posted on 2014-03-10 11:41  一天一點  阅读(177)  评论(0编辑  收藏  举报