git 安装

安装git

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker

tar xf git-2.8.3.tar.gz

cd git-2.8.3/

make prefix=/usr/local/git all

make prefix=/usr/local/git install

Centos7 安装git

 yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker

tar xf git-2.8.3.tar.gz

cd git-2.8.3/

# ./configure --without-iconv

# make CFLAGS=-liconv prefix=/usr/local/git all

# make CFLAGS=-liconv prefix=/usr/local/git install

 

# echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc

# source /etc/bashrc

posted @ 2018-10-17 17:36  Mr.zou  阅读(221)  评论(0编辑  收藏  举报