红联Linux门户
Linux帮助

SVN 1.6在RedHat Linux环境上的安装

发布时间:2014-12-12 15:06:01来源:linux网站作者:testbed1

1. 安装包下载

1.1 安装环境

Red Hat Enterprise Linux Server release 5.3 X86_64 (rhel5)

1.2 安装包下载路径

下载最新的SVN稳定版本svn 1.6.12 全部rpm安装包。

http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/1.6.12/rhel5/x86_64/

mod_dav_svn-1.6.12-1.rhel5.x86_64.rpm        19-Jun-2010 19:58       261K

neon-0.28.4-1.x86_64.rpm                      28-Mar-2009 18:57      267K

neon-devel-0.28.4-1.x86_64.rpm               28-Mar-2009 18:57      339K

sqlite-3.5.9-2.x86_64.rpm                 28-Mar-2009 18:51      547K

sqlite-devel-3.5.9-2.x86_64.rpm                 28-Mar-2009 18:51      86K

subversion-1.6.12-1.rhel5.x86_64.rpm          19-Jun-2010 19:58       3.6M

subversion-devel-1.6.12-1.rhel5.x86_64.rpm   19-Jun-2010 19:58       3.1M


2 安装过程

2.1 检查SVN版本并卸载旧的版本

以root用户上传svn安装包到服务器并尝试安装。

[root@www svn]# rpm -qa | grep subversion

[root@www bin]# rpm -e subversion-1.4.2-4.el5

error: "subversion-1.4.2-4.el5" specifies multiple packages

[root@www bin]# rpm -e --allmatches subversion-1.4.2-4.el5

[root@www svn]# rpm -ivh subversion-1.6.12-1.rhel5.x86_64.rpm

error: Failed dependencies:

libneon.so.27()(64bit) is needed by subversion-1.6.12-1.x86_64

neon >= 0.26.1 is needed by subversion-1.6.12-1.x86_64

sqlite >= 3.4 is needed by subversion-1.6.12-1.x86_64

2.2 SVN1.6安装过程

先升级sqlite,请注意,rpm管理本身对sqlite有依赖,所以不能卸载sqlite,如果卸载,会出现rpm命令不可用的问题,最好直接升级至最新版本的sqlite。

[root@www svn]# rpm -Uvh sqlite-3.5.9-2.x86_64.rpm

Preparing...          ################# [100%]

1:sqlite           ################### [100%]

[root@www svn]# rpm -Uvh neon-0.28.4-1.x86_64.rpm

error: Failed dependencies:

libneon.so.25()(64bit) is needed by (installed) cadaver-0.22.3-4.el5.x86_64

[root@www svn]# rpm -qa | grep cadaver

cadaver-0.22.3-4.el5

[root@www svn]# rpm -e cadaver-0.22.3-4.el5

[root@www svn]# rpm -Uvh neon-0.28.4-1.x86_64.rpm

Preparing...            ################## [100%]

1:neon             ##################### [100%]

[root@www svn]# rpm -Uvh neon-devel-0.28.4-1.x86_64.rpm

Preparing...            #################### [100%]

1:neon-devel        ################ [100%]

[root@www svn]# rpm -ivh subversion-1.6.12-1.rhel5.x86_64.rpm

Preparing...            ##################### [100%]

1:subversion        ################# [100%]

[root@www svn]# rpm -Uvh mod_dav_svn-1.6.12-1.rhel5.x86_64.rpm

Preparing...            ################### [100%]

1:mod_dav_svn     ################### [100%]

Stopping httpd: [  OK  ]

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 200.95.160.202 for ServerName  [  OK  ]

[root@www svn]#

[root@www svn]# rpm -Uvh sqlite-devel-3.5.9-2.x86_64.rpm

Preparing...             #################### [100%]

1:sqlite-devel         ############### [100%]

[root@www svn]# rpm -Uvh subversion-devel-1.6.12-1.rhel5.x86_64.rpm

Preparing...             ################### [100%]

1:subversion-devel   #################### [100%]

[root@www svn]#


3 安装验证

[root@www ~]# svnserve --version

svnserve, version 1.6.12 (r955767)

compiled Jun 19 2010, 10:46:32

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 back-end (FS) modules are available:

* fs_base : Module for working with a Berkeley DB repository.

* fs_fs : Module for working with a plain file (FSFS) repository.

Cyrus SASL authentication is available.