Linux

centos 6.4 svn 1.7.x 설치하기

Naan 2013. 8. 14. 16:42
320x100

centos 6.4 에는 기본으로 1.6.11 설치되어 있다.

[root@localhost ~]# svn --version

svn, version 1.6.11 (r934486)

   compiled Jun 23 2012, 00:44:03


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


우선 기존 svn 삭제

[root@localhost ~]# yum remove subversion


설치

[root@localhost ~]# cd /usr/local/src

[root@localhost ~]# wget http://mirror.nyi.net/apache/subversion/subversion-1.7.11.tar.gz


subversion-1.7.11.tar.gz

[root@localhost ~]# tar zxf subversion-1.7.11.tar.gz

[root@localhost ~]# cd /usr/local/src/subversion-1.7.11

[root@localhost ~]# wget http://rahulsoni.me/files/apr-util-1.3.12.tar.gz


apr-util-1.3.12.tar.gz

[root@localhost ~]# wget http://rahulsoni.me/files/apr-1.4.5.tar.gz


apr-1.4.5.tar.gz

[root@localhost ~]# tar zxf apr-util-1.3.12.tar.gz

[root@localhost ~]# tar zxf apr-1.4.5.tar.gz

[root@localhost ~]# ./configure --prefix=/usr/local/svn-1.6.17 --with-neon --with-ssl

[root@localhost ~]# make && make install


확인

설치를 다 했으니 정상적으로 설치가 됐나 확인해보자

[root@localhost ~]# svn --version

-bash: /usr/bin/svn: No such file or directory

path 경로가 지정이 안되서 그렇다.

[root@localhost ~]# vi ~/.bash_profile

PATH=$PATH:$HOME/bin --> PATH=$PATH:$HOME/bin:/usr/local/bin/

수정해주자
[root@localhost ~]source ~/.bash_profile

적용해주면


[root@localhost ~]# svn --version

svn, version 1.7.11 (r1503888)

   compiled Aug 14 2013, 14:14:49


Copyright (C) 2013 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


1.7.11 버전이 설치된것을 확인할수 있다.


320x100