系统相关
首页 > 系统相关> > Centos-610-源码安装GIT

Centos-610-源码安装GIT

作者:互联网

 

  源码目录 /opt/tools

  安装目录 /usr/local/git

 

 yum remove git -y

 

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

 

 https://mirrors.edge.kernel.org/pub/software/scm/git/

 

cd /usr/local/src
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz 
tar xf git-2.9.5.tar.xz 
cd git-2.9.5 
make prefix=/usr/local/git all
make prefix=/usr/local/git install

 

vi /etc/profile
在文件底部参照截图进行配置

 

  保持退出

  source /etc/profile   (使配置生效)

 

  git --version

  

  显示如截图则说明Git安装成功;若按照失败请根据提示检查相关配置

 

 

 

 

标签:git,tar,Centos,安装,610,devel,源码,usr,local
来源: https://www.cnblogs.com/oumi/p/13151127.html