歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 6.5安裝部署SVN 1.8.10

CentOS 6.5安裝部署SVN 1.8.10

日期:2017/2/28 14:26:38   编辑:Linux教程

環境: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

Linux中Subversion配置實例 http://www.linuxidc.com/Linux/2012-02/53109.htm

CentOS 6.2 SVN搭建 (YUM安裝) http://www.linuxidc.com/Linux/2013-10/91903.htm

CentOS 6.5部署Apache+SVN http://www.linuxidc.com/Linux/2013-12/94315.htm

Apache+SVN搭建SVN服務器 http://www.linuxidc.com/Linux/2013-03/81379.htm

Windows下SVN服務器搭建和使用 + 客戶端重新設置密碼 http://www.linuxidc.com/Linux/2013-05/85189p5.htm

Ubuntu Server 12.04 安裝 SVN 並遷移 Virtual SVN數據 http://www.linuxidc.com/Linux/2013-05/84695.htm

Ubuntu Server搭建svn服務以及遷移方法 http://www.linuxidc.com/Linux/2013-05/84693.htm

借助網盤搭建SVN服務器 http://www.linuxidc.com/Linux/2013-10/91271.htm

更多CentOS相關信息見CentOS 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=14

Copyright © Linux教程網 All Rights Reserved