首页 > 其他 > 详细

git安装 编译安装

时间:2017-05-07 11:27:34      阅读:231      评论:0      收藏:0      [点我收藏+]
一、安装依赖
yum update -y  #可以不做
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker

wget https://github.com/git/git/archive/v2.7.4.zip
unzip v2.7.4.zip
cd git-2.7.4

make prefix=/usr/local/git all
make prefix=/usr/local/git install
rm -rf /usr/bin/git
ln -s /usr/local/git/bin/git /usr/bin/git
git --version

[root@192 git-2.7.4]# git  --version 
git version 2.7.4
[root@192 git-2.7.4]# which   git 
/usr/bin/git
[root@192 git-2.7.4]# 

git所要的文件在自己百度云的tmp目录下


本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1922793

git安装 编译安装

原文:http://wsxxsl.blog.51cto.com/9085838/1922793

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!