红联Linux门户
Linux帮助

CentOS 6.5安装部署SVN 1.8.10

发布时间:2014-11-01 10:45:54来源:linux网站作者:attagain

环境:CentOS 6.5


一、 安装依赖包
在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