centos6 和centos7 安装git 的区别

centos6 和centos7 安装git 的区别

centos6安装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

上一篇:[moka同学笔记]Yii2 数据操作Query Builder


下一篇:GodSon Easyui 结合Pluplaod插件的文件分割上传