码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS 如何安装git server

时间:2015-07-15 20:41:48      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:

安装git

1. Git 的工作需要调用 curl,zlib,openssl,expat,libiconv 等库的代码,所以需要先安装这些依赖工具
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel
2. 然后到官网http://git-scm.com/download/linux下载最新版本源码安装,或者使用系统提供的包管理工具安装.
3. 下载后解压 进入文件夹
tar xzf git-2.3.5.tar.gz
cd git-2.3.5
4. 网上找了半天资料发现没有有用的自己翻看 readme来解决 通过readme 知道安装需要查看 install 文件 

Normally you can just do "make" followed by "make install", and that
will install the git programs in your own ~/bin/ directory.  If you want
to do a global install, you can do

 $ make prefix=/usr all doc info ;# as yourself
 # make prefix=/usr install install-doc install-html install-info ;# as root

(or prefix=/usr/local, of course).

我这采用的是:

make prefix=/usr/local all
make prefix=/usr/local install

 

 

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CentOS 如何安装git server

标签:

原文地址:http://www.cnblogs.com/wuling129/p/4649332.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!