출처: http://kineo2k.tistory.com/tag/Subversion
Subversion을 사용해보려고 "서브버전을 이용한 실용적인 버전 관리" 책을 폈다.
우선 설치부터 해야겠다 싶어서 34페이지에 "3.1 서브버전 설치"를 폈다. 그리고 대략 5초후 좌절했다.
'독자의 운영체제에 맞는 패키지를 다운받고 지시에 따라 설치하면 된다' ?????
물론.. 설치라는 것이 어려운 작업은 아니다. ( 경우에 따라서는 어려울 수도 있다. )
그래도, 나같은 컴맹들을 위해서 1~2페이지만 할애해 줬다면 좋았을 것을 ㅜㅡ
(157 페이지에 설치가 나오네요 ㅡ..ㅡ; 2007-07-02)
구글링돌입.
1. CollabNet Subversion 사이트에서 rpm 버전의 패키지를 다운 받는다.
http://www.collab.net/products/subversion/
- CollabNetSubversion-server-1.4.3-5.i386.rpm
- CollabNetSubversion-client-1.4.3-5.i386.rpm
2. rpm 설치
# rpm -ivh CollabNetSubversion-client-1.4.3-5.i386.rpm
Preparing... ########################################### [100%]
1:CollabNetSubversion-cli########################################### [100%]
# rpm -ivh CollabNetSubversion-server-1.4.3-5.i386.rpm
Preparing... ########################################### [100%]
1:CollabNetSubversion-ser########################################### [100%]
3. 환경변수 설정
# vi /etc/profile
export PATH=/opt/CollabNet_Subversion/bin:$PATH
# source /etc/profile
# svn --version
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is ko_KR.euckr
svn: warning: please check that your locale name is correct
svn, version 1.4.3 (r23084)
compiled Apr 24 2007, 17:09:07
Copyright (C) 2000-2006 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_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
4. SVN 서버 실행 및 repository 생성
# sudo Configure-CollabNet-Subversion
CollabNet Subversion Server is a free download of open-source Subversion,
compiled and tested by CollabNet. For more information about CollabNet
Subversion, visit the CollabNet community at http://open.collab.net.
Would you like to configure the CollabNet Subversion Server now? [yes] yes // 서버 실행
Welcome to CollabNet Subversion Server setup.
You will now be asked some questions to configure CollabNet Subversion.
Defaults are given in square brackets. If a default is okay for you
Just hit [Enter] to continue.
This setup can configure either Apache or svnserve as Subversion
server, for you. Would you like to configure Apache as your
Subversion server now? [yes] yes // 서브버전서버 설정
Continuing with apache Subversion server configuration ...
Specify the base directory for Subversion repositories: [/media/svn/repository] // 사용할 리포지트리
Searching for existing Subversion repositories ...
No repositories found under /media/svn/repository
Should I use this path? [yes] yes // 해당 패스를 사용함
Would you like to create a new Subversion repository? [yes] yes // 서브 리포지트리
What should be your new Subversion repository name? mylab // 서브 리포지트리명
Creating new repository ...
svnadmin: warning: cannot set LC_CTYPE locale
svnadmin: warning: environment variable LC_CTYPE is ko_KR.euckr
svnadmin: warning: please check that your locale name is correct
Done. Creating initial branch structure...
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is ko_KR.euckr
svn: warning: please check that your locale name is correct
Done.
Would you like to create another Subversion repository? [yes] no // 추가 리포지트리 생성 안함
Would you like to give the name and port that the server uses to identify itself? [yes] yes
Registered DNS name or IP address: 127.0.0.1 // 서브버전서버IP
Server port number: 80 // 서브버전서버 포트
Port number not given, assuming it as 80
Allow anonymous read access? [no] no // 익명접속안됨
1 users currently have access to this repository:
kineo2k
Would you like to create a new Subversion account? [yes] no // 새로운 서브버전 계정생성
Stopping CollabNet Subversion: [ OK ]
Starting CollabNet Subversion: [ OK ]
Congratulations! You have successfully configured the CollabNet
Subversion server.
You can access your repositories at the following URL:
http://127.0.0.1:80/svn/YOUR-REPOS-NAME