Linux下git安装配置

环境:

Linux PBCS-IN-LIB 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

git下载地址:https://www.kernel.org/pub/software/scm/git/

安装:

tar -xzf  git-2.1.3.tar.gz
cd git-2.1.3
./configure -prefix=/usr/local/git --with-curl  --with-expat
make && make install


修改参数

修改/etc/profile,在PATH中加入git路径,并执行 source /etc/profile

GIT_HOME=/usr/local/git
PATH=$PATH:$GIT_HOME/bin:$GIT_HOME/libexec/git-core
export PATH GIT_HOME


检查

git --version


git-svn   安装需要依赖subversion-perl

1. Subversion的版本信息

# rpm -qf `which svn`
subversion-1.4.2-4.el5_3.1

2.检查操作系统信息

[root@PBCS-IN-LIB git]# uname -i
x86_64

3.查找rpm包,安装rpm

rpm -ivh subversion-perl-1.4.2-4.el5_3.1.x86_64.rpm


Gitweb安装


安装lighttpd ,http://www.lighttpd.net下载源码进行安装

./configure --prefix=/usr/local/lighttpd 

make && make install

启动

git instaweb --httpd=/usr/local/lighttpd/sbin/lighttpd





  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值