redhat 6.5 安装配置svn服务器

最近工作需要,需一个代码的共享平台;遂在现有的redhat6.5 系统上进行搭建。

一般情况,可以直接从安装盘中安装系统自带的安装包;或者下载svn对应系统版本进行安装。这里我采用了直接从安装镜像ISO盘里进行安装。

  • 1 挂载cdrom中的安装盘
    1
    mount -t iso9660 /dev/cdrom /mnt
  • 2 安装subversion

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    [root@localhost Packages]# yum install subversion-1.6.11-9.el6_4.x86_64.rpm 
    Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    Setting up Install Process
    Examining subversion-1.6.11-9.el6_4.x86_64.rpm: subversion-1.6.11-9.el6_4.x86_64
    Marking subversion-1.6.11-9.el6_4.x86_64.rpm to be installed
    Resolving Dependencies
    --> Running transaction check
    ---> Package subversion.x86_64 0:1.6.11-9.el6_4 will be installed
    --> Processing Dependency: perl(URI) >= 1.17 for package: subversion-1.6.11-9.el6_4.x86_64
    --> Finished Dependency Resolution
    Error: Package: subversion-1.6.11-9.el6_4.x86_64 (/subversion-1.6.11-9.el6_4.x86_64)
    Requires: perl(URI) >= 1.17
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest
  • 3 安装依赖包perl-URI

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
     [root@localhost Packages]# yum install perl-URI-1.40-2.el6.noarch.rpm 
    Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    Setting up Install Process
    Examining perl-URI-1.40-2.el6.noarch.rpm: perl-URI-1.40-2.el6.noarch
    Marking perl-URI-1.40-2.el6.noarch.rpm to be installed
    Resolving Dependencies
    --> Running transaction check
    ---> Package perl-URI.noarch 0:1.40-2.el6 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ===============================================================================================================================================================================================
    Package Arch Version Repository Size
    ===============================================================================================================================================================================================
    Installing:
    perl-URI noarch 1.40-2.el6 /perl-URI-1.40-2.el6.noarch 250 k

    Transaction Summary
    ===============================================================================================================================================================================================
    Install 1 Package(s)

    Total size: 250 k
    Installed size: 250 k
    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : perl-URI-1.40-2.el6.noarch 1/1
    Verifying : perl-URI-1.40-2.el6.noarch 1/1

    Installed:
    perl-URI.noarch 0:1.40-2.el6

    Complete!
  • 4 安装subversion

    1
    2
    3
    4
    5
    [root@localhost Packages]# rpm -ivh subversion-1.6.11-9.el6_4.x86_64.rpm 
    warning: subversion-1.6.11-9.el6_4.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
    Preparing... ########################################### [100%]
    1:subversion ########################################### [100%]
    或者 yum install subversion-1.6.11-9.el6_4.x86_64.rpm

接下来的安装为了给apache http server安装svn模块,可以http来访问svn。

  • 5 安装mod_dav_svn

    1
    [root@localhost Packages]# yum install mod_dav_svn-1.6.11-9.el6_4.x86_64.rpm
  • 6 测试svn安装成功–查看svn版本

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    [root@localhost ~]# svn --version
    svn, version 1.6.11 (r934486)
    compiled Apr 2 2013, 08:56:54

    Copyright (C) 2000-2009 CollabNet.
    Subversion is open source software, see http://subversion.tigris.org/
    This product includes software developed by CollabNet (http://www.Collab.Net/).

    The following repository access (RA) modules are available:

    * ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
    - handles 'http' scheme
    - handles 'https' scheme
    * 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