- A+
所属分类:Linux
1、安装依赖包
1 |
; html-script: false ]#yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel openssl zlib curl autoconf tk |
2、安装git
1 2 3 4 5 6 7 |
#wget http://git-core.googlecode.com/files/git-1.7.10.tar.gz #tar zxf git-latest.tar.gz #cd git-2012-04-17/ #autoconf #./configure #make #make install |
#make和make install在这里最好分开执行,免得有错不知道.
1 |
#git --version |
git version 1.7.10
3、安装gitosis
1 |
#yum install python python-setuptools -y |
python-setuptools是必须安装的,不然后面是无法进行的
这里安装的时候可能会出现错误:
The program package-cleanup is found in the yum-utils package.
安装不上,
解决方法:
安装 yum-complete-transaction
1 |
#yum install yum-utils |
运行 yum-complete-transaction
1 |
#yum-complete-transaction --cleanup-only |
清除可能存在的重复包
1 |
#package-cleanup --dupes |
清除可能存在的损坏包
1 |
#package-cleanup --problems |
不过也有人使用yum安装,可能需要配置一些yum源
我这边给了一些
a、yum安装git前准备
1 2 3 |
#wget -P /etc/yum.repos.d/ http://geekery.altervista.org/geekery-el5-i386.repo #wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm #rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm |
epel-release需要在http://rpm.pbone.net/上找
1 |
#rpm -ivh epel-release-5-4.noarch.rpm |
b、开始使用yum安装git
#yum -y install git
给大家一个连接,也许需要用到,http://geekery.altervista.org/dokuwiki/doku.php

微信公众号
扫一扫关注运维生存时间公众号,获取最新技术文章~