Centos下git安装

 首先,要确定你系统里已经安装好了gcc编译器,还有一下一些软件包:

先安装git依赖的包 
# yum install zlib-devel 
# yum install openssl-devel 
# yum install perl 
# yum install cpio 
# yum install expat-devel 
# yum install gettext-devel 

安装autoconf 
# yum install autoconf 

如果没有安装gcc

# yum install gcc

接下来,我们下载git软件包:

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

解压:

# tar -zxvf git-latest.tar.gz

安装git:

# cd git-{date}

# autoconf

# ./configure -with-curl=/usr/local/

# make & make install

你可能感兴趣的:(centos,git安装,centos下安装git)