Centos7软件安装系列【六】安装git

 #安装准备,git-2.17.0


#删除原装git
yum remove git

#安装gcc
yum install gcc

#安装g++
yum install gcc-c++

#安装编译所需的包
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev 
yum install gcc perl-ExtUtils-MakeMaker



#开始安装
cd /home/software
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.17.0.tar.gz
tar xzvf git-2.17.0.tar.gz
cd git-2.17.0
./configure --prefix=/usr/local/git-2.17.0
make
make install
echo "export GIT_HOME=/usr/local/git-2.17.0" >> /etc/profile
echo "export PATH=\$PATH:\$GIT_HOME/bin" >> /etc/profile
source /etc/profile

   转载规则


《Centos7软件安装系列【六】安装git》 Euler 采用 知识共享署名 4.0 国际许可协议 进行许可。
  目录