CentOS6.5部署SVN1.8.10

一、 安装依赖包
在Linux内核系统中,Subversion编译安装最新版本时,需要安装以下依赖包:
apr-1.5.1、apr-util-1.5.4、zlib-1.2.8、openssl、expat-2.1.0、serf-1.2.1 、sqlite-amalgamation-3080700
1、 安装apr模块(1.5.1)
官网URL:http://apr.apache.org/
  安装命令:
# tar zxvf apr-1.5.1.tar.gz
# cd apr-1.5.1
# ./configure
# make && make install
2、 安装apr-util模块(1.5.4)
官网URL:http://apr.apache.org/
安装命令:
# tar zxvf apr-util-1.5.4.tar.gz
# cd apr-util-1.5.4
# ./configure --with-apr=/usr/local/apr
# make && make install
3、 安装zlib模块(1.2.8)
官方网站:http://www.zlib.net/
安装命令:
# tar zxvf zlib-1.2.8.tar.gz
# cd zlib-1.2.8
# ./configure
# make && make install
4、 安装openssl模块(1.0.1h)
官方网站:http://www.openssl.org/
安装命令:
# tar zxvf openssl-1.0.1h.tar.gz
# cd openssl-1.0.1h
# ./config
# make &&make  install
5、 安装expat模块(2.1.0)
官方网站:http://sourceforge.net/projects/expat/files/expat/2.1.0/
安装命令:
#tar zxvf expat-2.1.0.tar.gz
#  cd expat-2.1.0
# ./configure
# make &&make  install
6、 安装serf模块(1.2.1)
官网URL:http://serf.googlecode.com/files/serf-1.2.1.tar.bz2
由于google官网受限,很难下载该模块。CSDN共享的下载地址:
http://download.csdn.net/detail/attagain/8071513
说明:
(1)1.8版本之前的需要加neon,1.8版本之后弃用neon而改使用serf;
(2)这里使用的是serf-1.2.1,据subversion 1.8版本使用serf-1.3.0会有异常
安装命令:
# tar xjvf serf-1.2.1.tar.bz2
# cd serf-1.2.1
# ./configure
# make && make install
7、 解压subversion
# tar xvf subversion-1.8.10.tar.gz
8、 sqlite-amalgamation-3080700
官网URL:http://www.sqlite.org/download.html
解压到subversion目录下,解压后目录名为sqlite-amalgamation:
# unzip sqlite-amalgamation-3080700.zip -d ./subversion-1.8.10
#mv ./subversion-1.8.10/sqlite-amalgamation-3080700 ./subversion-1.8.10/sqlite-amalgamation
二、 安装subversion
官网URL:http://subversion.apache.org/download/
# cd subversion-1.8.10
#./configure --prefix=/usr/local/subversion \
           --with-apr=/usr/local/apr \
           --with-apr-util=/usr/local/apr \
           --with-serf=/usr/local/serf \
           --with-openssl
# make && make install

查看版本信息:
$ svn --version
svn,版本 1.8.10 (r1615264)
   编译于 Oct 23 2014,19:09:19 在 x86_64-unknown-linux-gnu

Copyright (C) 2014 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

可使用以下的版本库访问模块:

* ra_svn : 使用 svn 网络协议访问版本库的模块。  - 使用 Cyrus SASL 认证
  - 处理“svn”方案
* ra_local : 访问本地磁盘的版本库模块。
  - 处理“file”方案
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.2.1
  - 处理“http”方案
  - 处理“https”方案
三、 配置系统搜索路径
编辑当前用户脚本初始化文件/home/TSP/ .bash_profile,在PATH后添加subversion路径,添加结果如下:
PATH=$PATH:$HOME/bin:/usr/local/subversion/bin

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值