记录日常工作关于系统运维,虚拟化云计算,数据库,网络安全等各方面问题。

RHEL 6.5安装 subversion (Linux 搭建SVN服务器) 



       SVN是Subversion的简称,是一个开放源代码的版本控制系统,相较于RCS、CVS,它采用了分支管理系统,它的设计目标就是取代CVS。互联网上很多版本控制服务已从CVS迁移到Subversion。
       其实,我们只需要了解一点就好了,SVN是用于版本控制的一个服务软件。
       
二 、 搭建步骤


下面是安装过程:

     2.1 安装前的准备

            Subversion 需要使用源友安装,而且与subversion 配套的,需要安装其他的一些依赖包,或者称为运行环境。在安装subversion前需要编译安装以下几种软件包:

                    

软件包版本下载地址
apr1.5.1http://apr.apache.org/
apr-util1.5.4http://apr.apache.org/
zlib1.2.8http://www.zlib.net/
openssl1.0.1jhttp://www.openssl.org/
expat2.1.0http://sourceforge.net/projects/expat/files/expat/2.1.0/
serf1.2.1 http://download.csdn.net/detail/attagain/8071513
sqlite-amalgamation3080700http://www.sqlite.org/download.html
         下载完成后,将软件包上传至服务器。
     2.1 安装

           安装apr模块
          

点击(此处)折叠或打开

  1. tar zxvf apr-1.5.1.tar.gz
  2. cd apr-1.5.1
  3. ./configure
  4. make && make install
         安装apr-util模块

点击(此处)折叠或打开

  1. tar zxvf apr-util-1.5.4.tar.gz
  2. cd apr-util-1.5.4
  3. ./configure --with-apr=/usr/local/apr
  4. make && make install
       安装zlib模块

点击(此处)折叠或打开

  1. tar zxvf zlib-1.2.8.tar.gz
  2. cd zlib-1.2.8
  3. ./configure
  4. make && make install
         安装openssl模块

点击(此处)折叠或打开

  1. tar -xzvf ./openssl-1.0.1j.tar.gz
  2. cd openssl-1.0.1j
  3. ./config
  4. make &&make install
         安装expat模块

点击(此处)折叠或打开

  1. tar zxvf expat-2.1.0.tar.gz
  2.  cd expat-2.1.0
  3. ./configure
  4. make &&make install
        安装serf模块

点击(此处)折叠或打开

  1. tar xjvf serf-1.2.1.tar.bz2
  2. cd serf-1.2.1
  3. ./configure
  4. make && make install
        安装SubVersion

点击(此处)折叠或打开

  1. tar xvf subversion-1.8.10.tar.gz
  2. unzip sqlite-amalgamation-3080700.zip -d ./subversion-1.8.10
  3. mv ./subversion-1.8.10/sqlite-amalgamation-3080700 ./subversion-1.8.10/sqlite-amalgamation
  4. cd subversion-1.8.10
  5. ./configure --prefix=/usr/local/subversion \
  6.          --with-apr=/usr/local/apr \
  7.          --with-apr-util=/usr/local/apr \
  8.          --with-serf=/usr/local/serf \
  9.          --with-openssl
  10. make && make install

三、 搭建后进行验证

给用户环境变量添加搜寻路径:
         cd ~
        vi ./.bash_profile
        修改PATH 环境变量,添加/usr/local/subversion/bin . 修改后,注意使变量生效。
          
         验证
svn --version 
正常显示如下:
svn, version 1.8.10 (r1615264)
   compiled Nov  3 2014, 16:10:42 on 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/


The following repository access (RA) modules are available:


* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.2.1
  - handles 'http' scheme
  - handles 'https' scheme


转载请标明出处【RHEL 6.5安装 subversion (Linux 搭建SVN服务器) 】。

《www.micoder.cc》 虚拟化云计算,系统运维,安全技术服务.

网站已经关闭评论