CentOS5.5编译安装Git1.7.3.4

yum -y install gcc make \
gettext-devel \
curl-devel \
zlib-devel \
expat-devel \
openssl-devel
2、下载源代码

http://kernel.org/pub/software/scm/git/git-1.7.3.4.tar.bz2
3、编译安装git

tar xf git-1.7.3.4.tar.bz2
cd git-1.7.3.4
./configure –prefix=/usr/local –with-curl=/usr/local
make
make install
4、检测是否安装成功
在以上步骤中没有出现错误安装应该成功,可以通过以下方式检验

git –version

Post a Comment

Your email is never shared. Required fields are marked *

*
*