linux安装GIT
1、安装依赖工具
yum install -y curl-devel expat-devel gettext-devel \ openssl-devel zlib-devel
https://git-scm.com/download/linux
选自己需要的版本进行下载
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-1.8.4.tar.gz
解压安装
tar -zxf git-1.8.4.tar.gz
cd git-1.8.4 make prefix=/usr/local all //我用root操作的就不带sudo了 sudo make prefix=/usr/local install
我这里出现了点错误信息:
Can't locate ExtUtils/MakeMaker.pm,用以下方法解决:
yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker cpan
查看版本已安装成功
[root@ecs-e339-0002 git-1.8.4]# git --version git version 1.8.3.1
转载请注明博客出处:http://www.cnblogs.com/cjh-notes/