歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> SVN 1.6在RedHat Linux環境上的安裝

SVN 1.6在RedHat Linux環境上的安裝

日期:2017/2/28 16:06:49   编辑:Linux教程

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安裝包到服務器並嘗試安裝。

[[email protected] svn]# rpm -qa | grep subversion

[[email protected] bin]# rpm -e subversion-1.4.2-4.el5

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

[[email protected] bin]# rpm -e --allmatches subversion-1.4.2-4.el5

[[email protected] 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。

[[email protected] svn]# rpm -Uvh sqlite-3.5.9-2.x86_64.rpm

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

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

[[email protected] 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

[[email protected] svn]# rpm -qa | grep cadaver

cadaver-0.22.3-4.el5

[[email protected] svn]# rpm -e cadaver-0.22.3-4.el5

[[email protected] svn]# rpm -Uvh neon-0.28.4-1.x86_64.rpm

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

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

[[email protected] svn]# rpm -Uvh neon-devel-0.28.4-1.x86_64.rpm

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

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

[[email protected] svn]# rpm -ivh subversion-1.6.12-1.rhel5.x86_64.rpm

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

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

[[email protected] 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 ]

[[email protected] svn]#

[[email protected] svn]# rpm -Uvh sqlite-devel-3.5.9-2.x86_64.rpm

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

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

[[email protected] svn]# rpm -Uvh subversion-devel-1.6.12-1.rhel5.x86_64.rpm

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

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

[[email protected] svn]#

3 安裝驗證

[[email protected] ~]# 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.

Copyright © Linux教程網 All Rights Reserved