태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.


http://download.eclipse.org/technology/subversive/0.7/update-site/

http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/
top

Trackback Address :: http://www.ssial.com/trackback/292 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:37 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Chanel Outlet 2011/09/17 21:37 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  3. Chanel Outlet 2011/09/17 21:37 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  4. Coach Outlet Online 2011/11/15 12:48 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

  5. Coach Factory Online 2011/12/11 23:03 댓글주소 | 수정/삭제 | 댓글

    댓글주소 | 수정/삭제 | 댓글

  6. abercrombie fitch 2011/12/13 21:13 댓글주소 | 수정/삭제 | 댓글

    Well, very good post with informative information. I really appreciate the fact that you approach these topics from a stand point of knowledge and information.

  7. abercrombie and fitch 2011/12/13 21:15 댓글주소 | 수정/삭제 | 댓글

    I think the author’s writing is very good, although the point of view a little bit different, but really is a good article, and the author can hope to have time to discuss some problems.

  8. Coach Factory Outlet Online 2011/12/14 15:58 댓글주소 | 수정/삭제 | 댓글

    Great Coach Factory Outlet Online
    . A lot of useful information here. I’m sending it to some friends!

  9. domain name register 2012/01/30 22:04 댓글주소 | 수정/삭제 | 댓글

    Innovative thinking is the main and important aspect that will get the creative spark out.

  10. vernon-davis-jersey 2012/02/13 09:28 댓글주소 | 수정/삭제 | 댓글

    http://www.49ersfanaticsshop.com/y-a-tittle-jersey
    http://www.49ersfanaticsshop.com/patrick-willis-jersey
    http://www.49ersfanaticsshop.com/aldon-smith-jersey
    http://www.49ersfanaticsshop.com/joe-montana-jersey
    http://www.49ersfanaticsshop.com/frank-gore-jersey
    http://www.49ersfanaticsshop.com/jerry-rice-jersey
    http://www.49ersfanaticsshop.com/ronnie-lott-jersey
    http://www.49ersfanaticsshop.com/vernon-davis-jersey
    http://www.49ersfanaticsshop.com/justin-smith-jersey
    http://www.49ersfanaticsshop.com/steve-young-jersey
    http://www.49ersfanaticsshop.com/alex-smith-jersey
    http://www.49ersfanaticsshop.com/michael-crabtree-jersey
    http://www.49ersfanaticsshop.com/49ers-customized-jersey
    http://www.49ersfanaticsshop.com/anthony-davis-jersey
    http://www.49ersfanaticsshop.com/brian-westbrook-jersey
    http://www.49ersfanaticsshop.com/colin-kaepernick-jersey
    http://www.49ersfanaticsshop.com/deion-sanders-jersey
    http://www.49ersfanaticsshop.com/delanie-walker-jersey
    http://www.49ersfanaticsshop.com/isaac-sopoaga-jersey
    http://www.49ersfanaticsshop.com/mike-iupati-jersey
    http://www.49ersfanaticsshop.com/nate-clements-jersey
    http://www.49ersfanaticsshop.com/nate-davis-jersey
    http://www.49ersfanaticsshop.com/roger-craig-jersey
    http://www.49ersfanaticsshop.com/taylor-mays-jersey

Write a comment


 

들어가기 전에...


0.시작하면서...

 개발자라면 한번쯤 소스 관리에 대해서 고민해 봤을 것이다. 특히나 수정이 잦은 프로그램이라면 더욱 더 버전 관리가 중요한데, 이걸 일일이 폴더나 날짜별로 관리하다가는 낭패를 보기 십상이다. 그래서 버전관리 프로그램을 사용하는데, 대표적인 것으로 소스세이프(Source Safe), CVS, Subversion 있다.

 윈도우 프로그래머라면 소스세이프가 굉장히 유용한데(Visual Studio를 설치하면 자동으로 깔리므로... ㅡ_ㅡa..), 사용해보니 속도가 무지 느리고 VC 또한 한참 뒤에 뜨게하는 무시무시한 단점이 있어서 다른 것을 찾다가 서브버전을 선택하게 되었다.

 서브버전의 장점은 인터넷에 잘 나오므로 굳이 이야기하지 않겠고, 실제 윈도우 버전 설치 및 설정에 대해서 알아보자.


1.Tortoise 서브버전(Subversion) 클라이언트 설치

1.1 Tortoise 서브버전(Subversion) 클라이언트 다운로드

 서브버전 서버를 설치한다면서 왜 클라이언트를 설치하는 것일까? 그것은 서버 설치후 나머지 작업을 편리하게 할 수 있기 때문이다.

 서브버전 클라이언트는 http://tortoisesvn.net/downloads 에서 다운 받을 수 있다.

Subversion9.PNG

<Tortoise 서브버전 클라이언트>


1.2 Tortoise 서브버전(Subversion) 클라이언트 설치

 클라이언트 설치는 간단하다. 무조건 "Next" 버튼을 눌러서 완료를 하면 알아서 다 해준다.

Subversion10.PNG 

<Tortoise 서브버전(Subversion) 클라이언트 설치>


 설치 후 탐색기에서 오른쪽 버튼을 클릭했을 때 아래와 같은 메뉴가 뜨면 정상적으로 설치된 것이다.

 Subversion11.PNG

<설치 완료>


2.서브버전(Subversion) 서버 설치

2.1 서브버전(Subversion) 서버 다운로드

 서브버전의 윈도우용 설치 파일은 http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91 에서 찾을 수 있다. 위 사이트로 이동하면 아래와 같은 화면을 볼 수 있는데, 최신버전의 설치 파일을 다운받아서 설치하도록 하자.

Subversion1.PNG 

<서브버전 서버 파일 다운로드>


2.2 서브버전(Subversion) 설치

 설치 과정은 아주 간단하다. 윈도우 인스톨 파일을 더블클릭해서 기본 옵션으로 설치하면 된다. "Next" 를 계속해서 클릭하여 완료하자.

Subversion2.PNG 

<인스톨 화면>


2.3 서브버전(Subversion) 설정

2.3.1 서브버전(Subversion) 데이터 폴더 생성(Repository)

 서버 설치가 끝났으니 데이터를 저장할 폴더를 생성해야한다. 저장소는 하드디스크의 특정 폴더로 하면 되고, 임의의 이름으로 선택 가능하다. 일단 D:\Repository로 해서 생성하자.

Subversion3.PNG

<저장소 생성>


2.3.2 서비스(Service) 등록

 서브버전 서버를 서비스로 등록하여 윈도우 부팅시에 자동으로 실행되도록 하자. 윈도우 서비스 등록은 sc.exe 프로세스로 등록가능하다. cmd.exe를 실행해서 아래와 같이 입력하도록 하자.

 Subversion4.PNG

<서비스 등록>

 아래는 서브버전 서비스를 등록하고 서비스를 해제하는 명령이다.

  • 서비스 등록 : sc create svn binpath= "C:\Program Files\Subversion\bin\svnserve.exe --service -r D:\repository" displayname= "Subversion Server" depend= Tcpip start= auto

  • 서비스 해제 : sc delete svn displayname= "Subversion Server"

 별다른 문제가 없다면 성공적으로 등록했다는 메시지가 출력될 것이다.


2.3.3 방화벽(Firewall) 해제

 서브버전은 TCP 3690 포트와 UDP 3690 포트를 사용한다. 윈도우 방화벽 및 Anti-Virus의 방화벽을 해제하도록 하자.

 아래는 윈도우 방화벽에서 포트를 추가하는 방법이다. TCP와 UDP 각각 등록해서 모두 가능하도록 하자.
Subversion5.PNG

<방화벽 해제>


2.4 저장소(Repository) 생성

 이제 서버 설정이 끝났으니 실제로 소스 또는 데이터를 관리할 저장소(Repository)를 생성해야 한다. 서브버전 관련 데이터는 D:\Repository 에 저장하기로 했으므로 하위 폴더에 저장소를 생성하자.


2.4.1 커맨드 라인(Command Line) 방식

 cmd.exe 를 실행한 뒤 D:\Repository 폴더로 이동하여 아래와 같이 입력한다.

"C:\Program Files\Subversion\bin\svnadmin" create --fs-type fsfs test

 위의 파란색으로 표시된 test를 유의해서 보자. test 대신에 생성을 원하는 폴더명으로 바꿔서 입력하면 된다.

 아래는 위의 명령을 실행한 후 결과 화면이다.

Subversion6.PNG 

<저장소 생성>

2.4.2 Tortois Subversion 클라이언트를 사용한 방식

 Tortois Subversion 클라이언트를 설치했다면 좀더 편한 방법으로 생성할 수 있다. 아래는 Tortoise Subversion 클라이언트를 통해 생성하는 방법이다.

 Subversion7.PNG

<저장소 생성>

 D:\Repository 폴더에 생성할 저장소 이름(Test)의 폴더를 미리 생성한 후 Tortoise Subversion 클라이언트에서 "Create repository here"를 클릭하면 된다.

 파일 시스템을 선택하는 다이얼로그가 뜨면 "Native filesystem(fsfs)"를 선택한 후 OK를 눌러서 생성하면 된다.


2.5 저장소 접근 설정

 저장소를 생성하고 나면 아래와 같은 폴더와 파일들이 생긴다.

Subversion8.PNG

<저장소 폴더 상태>

 이 중에서 접근 권한을 제어하기위해서는 2개의 파일을 손봐야 하는데 다음 항목을 보자


2.5.1 svnserve.conf

  1. ### This file controls the configuration of the svnserve daemon, if you
    ### use it to allow access to this repository.  (If you only allow
    ### access through http: and/or file: URLs, then this file is
    ### irrelevant.)
  2. ### Visit http://subversion.tigris.org/ for more information.
  3. [general]
    ### These options control access to the repository for unauthenticated
    ### and authenticated users.  Valid values are "write", "read",
    ### and "none".  The sample settings below are the defaults.
    anon-access = none     <== 로그인 하지 않은 사용자는 아무것도 못하도록 한다.
    auth-access = write
  4. ### The password-db option controls the location of the password
    ### database file.  Unless you specify a path starting with a /,
    ### the file's location is relative to the conf directory.
    ### Uncomment the line below to use the default password file.
    password-db = passwd   <== ID와 Password를 저장하는 파일 이름
  5. ### The authz-db option controls the location of the authorization
    ### rules for path-based access control.  Unless you specify a path
    ### starting with a /, the file's location is relative to the conf
    ### directory.  If you don't specify an authz-db, no path-based access
    ### control is done.
    ### Uncomment the line below to use the default authorization file.
    #authz-db = authz
  6. ### This option specifies the authentication realm of the repository.
    ### If two repositories have the same authentication realm, they should
    ### have the same password database, and vice versa.  The default realm
    ### is repository's uuid.
    realm = KKAMAGUI Repository   <== 접근했을 때 클라이언트에게 보여줄 저장소 메시지

 위와 같이 파일을 수정한 다음 저장한다.


2.5.2 passwd

  1. ### This file is an example password file for svnserve.
    ### Its format is similar to that of svnserve.conf. As shown in the
    ### example below it contains one section labelled [users].
    ### The name and password for each user follow, one account per line.
  2. [users]
    # harry = harryssecret
    # sally = sallyssecret
    kkamagui = kkamagui

 위와 같이 ID = Password의 형태로 입력한 뒤 저장하면 된다.



3.간단한 서브버전(Subversion) 서버 테스트

 테스트 방법은 간단하다. 탐색기에서 오른쪽 버튼을 눌러서 표시되는 메뉴에서 "Repo-Browser" 를 클릭하여 아래와 같은 창이 뜨면 서브버전 서버가 설치된 주소와 저장소 이름을 같이 입력해주면 된다.

Subversion7.PNG

<Repo-browser 메뉴>


 이제 주소와 저장소의 이름을 입력하자. 주소를 kkamagui.egloos.com, 그리고 저장소를 test라고 가정하고 입력하면 아래와 같이 될 것이다.

Subversion12.PNG 

<서브버전 주소 입력>


"OK" 버튼을 누르면 실제 서버에 접속해서 저장소 정보를 얻어오는데, 아래와 같은 화면이 표시될 것이다. 실제로 정상적으로 접속이 된다면 "test" 항목 아래에 아무것도 표시되지 않을 것이지만 문제가 발생한다면 아래와 같이 에러메시지가 표시될 것이다.

Subversion13.PNG

<Repo-Browser 실행-에러발생>


 위와 같은 에러 메시지가 표시되면 처음 단계부터 설정을 다시 한번 확인하자. 아무런 에러 메시지가 없다면 정상적으로 설치된 경우이므로 열심히 Check-out, commit, update를 반복하면 된다.


4.서브버전(Subversion) 서버를 설치하지 않고 로컬(Local)에서 소스 관리하기

 서브버전 서버가 설치되어있어야 꼭 소스 버전 관리가 가능한 것일까? "답은 그렇지 않다" 이다.

 Tortoise Subversion 클라이언트를 설치했다면 로컬에 저장소를 만들고 file:/// 키워드로 접근하여 소스 버전을 관리하는 것이 가능하다.


4.1 저장소 생성

 위의 "2.4 저장소(Repository) 생성" 부분을 참고해서 로컬에 Tortoise를 이용하여 저장소를 생성하자. 그리고 파일들을 수정해서 특정 유저만 접근가능하도록 수정하자.


4.2 저장소 접근 테스트

 위의 "3.간단한 서브버전(Subversion) 서버 테스트" 부분을 참고하여 "Repo-browser"를 실행하고 주소에 아래와 같이 입력한 후 OK를 누르자.

file:///d:\repository\test

 정상적으로 실행되면 아래와 같은 화면이 표시될 것이다.

 Subversion14.PNG

<Repo-browser 실행>

 아무런 에러가 없으므로 정상적으로 실행되었음을 알 수 있다. 이렇게 함으로써 서버를 설치하지 않고도 로컬에서 소스 버전관리를 할 수 있다.


5.기타 팁

5.1 버전 관리시 무시할 파일 확장자 설정

 소스를 컴파일해서 나오는 object 파일이나 기타 필요없는 부산물들은 버전관리를 할 필요가 없다. 그런 파일들을 일일이 수작업으로 제외하기는 상당히 귀찮은 작업인데, 다행이 Tortoise에서 이것을 편리하게 할 수 있는 옵션이 있다.

 "Settings" 메뉴에 가면 아래와 같은 화면이 표시된다. 여기에 "Global Ignore Pattern" 항목에 무시할 파일의 확장자나 파일명을 입력하면 된다.

*.scc *.sbr *.pch *.pcb *.ilk *.idb *.res *.o *.obj *.ncb *.opt *.plg

Subversion15.png 

<확장자 및 파일명 입력>


6.마치면서...

 이로서 그 지긋지긋하게 느린 소스세이프(SourceSafe)에서 벗어날 수 있게 되었다(이렇게 좋을 수가... ㅜ_ㅜ). 소스 버전 관리를 통해 프로젝트를 보다 효율적으로 관리하고 협업의 능률을 최대한 활용하자. @0@)/~~!!


7.참고 사이트


top

Trackback Address :: http://www.ssial.com/trackback/291 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:46 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Chanel Outlet 2011/09/17 21:46 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  3. abercrombie fitch 2011/12/13 21:12 댓글주소 | 수정/삭제 | 댓글

    Well, very good post with informative information. I really appreciate the fact that you approach these topics from a stand point of knowledge and information.

  4. abercrombie and fitch 2011/12/13 21:14 댓글주소 | 수정/삭제 | 댓글

    I think the author’s writing is very good, although the point of view a little bit different, but really is a good article, and the author can hope to have time to discuss some problems.

  5. abercrombie fitch Deutschland 2012/02/07 16:57 댓글주소 | 수정/삭제 | 댓글

    This was very informative. I have been reading your blog a lot over the past few days and it has earned a place in my bookmarks.

  6. abercrombie Deutschland 2012/02/07 16:58 댓글주소 | 수정/삭제 | 댓글

    I have been reading your blog a lot over the past few days and it has earned a place in my bookmarks.

  7. wow gold 2012/02/09 18:59 댓글주소 | 수정/삭제 | 댓글

    Our professional fellows <a href=http://www.mmopowerlevels.com/SWTOR-Power-leveling.html>SWTOR Power leveling</a> strive to make the price of <a href=http://www.mmopowerlevels.com/Rift-Prestige-Powerleveling.html>Buy Cheap Rift Prestige</a> lowest. SWTOR Power leveling else can you find such a dirt sale! our SWTOR Power leveling price are really cheap now, you can buy really Cheap SWTOR Power leveling here http://www.cheap-powerleveling.com/starwars-the-old-republic-leveling.html We have mass available stock of swtor easy gold on most of the servers,We sell Cheap SWTOR Credits with 24/7 online support and Fast Delivery.

    http://www.cheap-powerleveling.com/starwars-the-old-republic-leveling.html SWTOR Power leveling
    http://www.cheap-powerleveling.com/starwars-the-old-republic-leveling.html Cheap SWTOR Power level
    http://www.cheap-powerleveling.com/SWTOR-Valor-Powerleveling.html SWTOR Valor Rank Powerleveling
    http://www.cheap-powerleveling.com/SWTOR-Valor-Powerleveling.html SWTOR Valor Powerleveling
    http://www.mmopowerlevels.com/SWTOR-Power-leveling.html SWTOR power leveling
    http://www.mmopowerlevels.com/SWTOR-Power-leveling.html power leveling swtor
    http://www.mmopowerlevels.com/SWTOR-Power-leveling.html SWTOR Power level
    http://www.mmopowerlevels.com/SWTOR-Valor-Powerleveling.html Valor Rank Powerleveling
    http://www.mmopowerlevels.com/SWTOR-Valor-Powerleveling.html Buy Cheap SWTOR Valor Rank
    http://www.mmopowerlevels.com/Rift-Prestige-Powerleveling.html Rift Prestige powerleveling
    http://www.mmopowerlevels.com/Rift-Favor-Points-Powerleveling.html Buy Cheap RIFT Favor Points
    http://www.mmopowerlevels.com/Dcuo-Marks-Powerleveling.html DCUO Marks powerleveling
    http://www.cheap-powerleveling.com/Buy-Diablo3-Gold.html Diablo III gold
    http://www.cheap-powerleveling.com/Buy-Diablo3-Gold.html Diablo 3 gold
    http://www.cheap-powerleveling.com/Buy-Diablo3-Gold.html Cheap Diablo3 gold
    http://www.cheap-powerleveling.com/diablo3-power-leveling.html Diablo 3 powerleveling
    http://www.cheap-powerleveling.com/diablo3-power-leveling.html Diablo III powerleveling
    http://www.mmopowerlevels.com/Diablo3-Power-leveling.html Diablo 3 powerleveling
    http://www.mmopowerlevels.com/Buy-Diablo3-Gold.html Buy Cheap Diablo 3 Gold

Write a comment


[subversive] SVNSERVE Manager

Posted 2008/06/09 10:33 by 애플자라
 
SVNSERVE Manager

Windows용 Subversion의 svnserve.exe 매니져입니다. svnserve.exe는 Subversion의 svn:// 프로토콜 서버입니다. svnserve.exe를 편리하게 사용할 수 있도록 도와줍니다.
  • 트레이 아이콘으로 시작/정지 상태표시
  • 시스템 시작시 자동실행
  • 서비스(Service) 설치 및 실행
<!> Windows용 Subversion이 설치되어 있어야 사용가능 합니다.

<!> ZIP 파일로 배포되는 Subversion을 사용하고 있는 경우 svnserve.exe를 찾는 창이 뜨게 되는데 svnserve.exe를 맨 처음 한번만 찾아주면 경로가 저장되기 때문에 이후에는 찾는 창이 뜨지 않습니다.

<!> 서비스 모드는 Subversion 1.4 이상의 버전에서만 지원됩니다.



트레이 아이콘
사용자 삽입 이미지

 


New Version
SVNManager-1.1.0-Setup.msi Version 1.1.0, Setup Package, 2006.12.15 <!> New
SVNManager-1.1.0.zip Version 1.1.0, 2006.12.15 <!> New
^^ 프로그램을 잘 사용하셨다면 감사의 말씀정도는 남겨주는 센스!

Old Versions
SVNManager-1.0.5-Setup.msi Version 1.0.5, Setup Package, 2006.12.11
SVNManager-1.0.5.zip Version 1.0.5, 2006.12.11
SVNManager-1.0.4-Setup.msi Version 1.0.4, Setup Package, 2005.7.28
SVNManager-1.0.4.zip Version 1.0.4, 2005.7.28
SVNManager-1.0.3-Setup.msi Version 1.0.3, Setup Package, 2004.10.20
SVNManager-1.0.3.zip Version 1.0.3, 2004.10.20
SVNManager-1.0.2-Setup.msi Version 1.0.2, Setup Package, 2004.10.19
SVNManager-1.0.2.zip Version 1.0.2, 2004.10.5
SVNManager-1.0.1.zip Version 1.0.1, 2004.10.5
SVNManager-1.0.0.zip Version 1.0.0, 2004.10.2
top

Trackback Address :: http://www.ssial.com/trackback/290 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:27 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Burberry Bags 2011/10/13 17:04 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  3. Coach Outlet Online 2011/11/15 12:45 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

  4. abercrombie fitch 2011/12/13 21:12 댓글주소 | 수정/삭제 | 댓글

    Well, very good post with informative information. I really appreciate the fact that you approach these topics from a stand point of knowledge and information.

  5. abercrombie and fitch 2011/12/13 21:14 댓글주소 | 수정/삭제 | 댓글

    I think the author’s writing is very good, although the point of view a little bit different, but really is a good article, and the author can hope to have time to discuss some problems.

  6. Coach Factory Outlet 2011/12/30 12:24 댓글주소 | 수정/삭제 | 댓글

    http://www.coachoutletpursess.com/ Coach Purses Outlet
    http://www.coachfactoryonlineu.com/ Coach Factory Online
    http://www.coachoutletl.com/ Coach Outlet
    http://www.canadacoachoutlet-s.net/ Coach Outlet Online
    http://www.coachoutletonline-2012.com/ Coach Outlet Online
    http://www.coachfactorystorei.com/ Coach Factory
    http://www.coachfactoryoutletz.com/ Coach Factory Outlet
    http://www.coachs-factory.net/ Coach Factory
    http://www.usgucci-shoes.net/gucci-bags-gucci-backpack-c-3_4_23.html gucci backpack
    http://www.coachoutletonline-purse.com/ Cheap Coach Handbags
    http://www.coachoutletonlinei.com/ Coach Outlet
    http://www.coachoutletpursess.com/ cheap coach purses
    http://www.coachfactoryonlineu.com/ Coach Factory Outlet
    http://www.coachoutletl.com/ Coach Outlet Online
    http://www.canadacoachoutlet-s.net/ Coach Outlet Canada
    http://www.coachoutletonline-2012.com/ Coach Factory
    http://www.coachfactorystorei.com/ Coach Factory Outlet
    http://www.coachfactorystorei.com/ Coach Factory Online
    http://www.coachfactoryoutletz.com/ Coach Factory Outlet Online
    http://www.coachs-factory.net/ Coach Factory Outlet
    http://www.coachoutletonlinei.com/ Coach Outlet Online
    http://www.coachoutletonline-purse.com/ Coach Outlet Online
    http://www.coachoutletonline-purse.com/ Discount Coach Handbags
    http://www.coachoutletpursess.com/ Coach handbags outlet
    http://www.coachfactoryonlineu.com/ Coach Factory Outlet Online
    http://www.canadacoachoutlet-s.net/ Coach Outlet
    http://www.coachoutletonline-2012.com/ Coach Factory Online
    http://www.coachfactorystorei.com/ coach factory outlet
    http://www.coachs-factory.net/ Coach Factory Outlet Online
    http://www.coachoutletonlinei.com/ Coach Factory Online

  7. abercrombie fitch Deutschland 2012/02/07 16:57 댓글주소 | 수정/삭제 | 댓글

    This was very informative. I have been reading your blog a lot over the past few days and it has earned a place in my bookmarks.

  8. abercrombie Deutschland 2012/02/07 16:58 댓글주소 | 수정/삭제 | 댓글

    I have been reading your blog a lot over the past few days and it has earned a place in my bookmarks.

Write a comment



소개 (Introduction)

이 문서는 Subversion을 사용하여 소스코드의 버전 컨트롤을 하고자 하는 모든 소프트웨어 종사자를 위해 작성되었습니다. 상당수의 경우 오픈 소스 소프트웨어의 높은 진입장벽 중 하나는 어려운 설치 방법입니다. 이러한 진입장벽을 제거하고, 보다 많은 개발자가 Subversion을 사용할 수 있도록 돕고자 작성되었습니다.

이 문서의 주요 섹션은 다음과 같습니다.


왜 Subversion인가?

이 세상에는 유용한 소스버전 컨트롤 시스템이 많습니다. 그런데 왜 Subversion을 선택했을까요? Subversion과CVS를 비교한 다음 문서에 자세한 비교 설명이 실려 있습니다.

문서 ‘CVS와 Subversion을 이용한 소스 코드 버전 관리’는 분실을 대비해서 로컬파일로 준비했습니다.


시스템 요구사항 (System Requirements)

이 문서 상에 기술된 내용이 테스트된 환경은 다음과 같습니다.

  • Microsoft Windows® 2000 Professional operating system

참고 문헌 (Related Links)

이 문서는 다음 문서를 참고하여 만들어졌습니다.

이 문서는 설치 가이드이므로, Subversion의 사용법이나 노하우를 익히려면 다음 문서를 참고하십시오.


설치 (Installation)

  1. Subversion 설치

    1. 설치 파일 구하기

      Windows용 설치파일(.exe)을 다운로드 합니다. 현재는 버전 1.2.0이 나왔습니다만, 이 설치 가이드에서는 버전 1.1.4를 사용합니다.버전 1.2.0이 나오면서 Berkeley DB의 새 버전을 사용하게 됐습니다. 이 때문에 이전 버전과의 호환성 문제가 발생합니다. 문서 작성자인 저의 컴퓨터엔 이미 1.1.1 버전이 설치되어 있기 때문에 부득이 버전 1.1.4를 사용합니다.

    2. Subversion 설치하기

      설치 프로그램(예. svn-1.1.4-setup.exe)을 더블 클릭하면 아래와 같은 설치화면이 나옵니다. 지시사항에 맞춰 Subversion을 설치하면 됩니다.

      Windows Platform에서의 Subversion 설치 가이드 001

      만약 후에 WebSVN과 같은 Subversion 웹 인터페이스를 설치하려고 하면 주의해야 할 점이 있습니다. Windows의 IIS를 웹서버로 사용하면 별다른 주의가 필요 없지만 Apache 서버를 사용할 때는 Subversion 설치 전에 Apache를 설치합니다. 이미 Subversion을 설치한 경우에는 다시 한번 Subversion을 설치합니다. 이 문서에서는 IIS 서버를 사용하는 경우를 다루기 때문에 자세한 사항은 언급하지 않습니다.

    3. Subversion PATH 설정

      Subversion의 바이너리가 설치된 경로를 환경변수 PATH에 등록합니다. 제어판 -> 시스템 -> 고급 -> 환경변수 -> 시스템변수 -> PATH를 선택합니다. 변수값에 바이너리가 설치된 경로를 추가합니다. 기본값은 다음과 같습니다.

      C:\Program Files\Subversion\bin

      환경변수 값이 제대로 설정되었는지 확인하려면 다음과 같이 작업합니다. 시작 -> 실행 -> 창에 cmd를 입력한 후 확인 버튼을 누릅니다.

      Windows Platform에서의 Subversion 설치 가이드 002

      검은 화면의 명령창이 나타날 것입니다. Svnlook 을 입력하고 엔터를 누릅니다. 다음과 같은 메시지가나오면 환경설정이 올바른 것입니다.

      Windows Platform에서의 Subversion 설치 가이드 003

      만약 다음과 같은 메시지가 나타나면 환경설정 값이 올바른지 다시 확인해야 합니다.

      'svnlook'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치파일이 아닙니다.
  2. SVNSERVE Manager 설치

    1. 개요

      SVNSERVE Manager은 Windows 시작시 Subversion을 자동으로 띄워주는 등, Subversion 서버를 편리하게 관리하도록 도와주는 소프트웨어입니다.

    2. 다운로드 및 설치

      여기에서 Windows용 설치 파일을 다운로드 받은 후실행시킵니다.

      Windows Platform에서의 Subversion 설치 가이드 004

      설치 후에 SVNSERVE Manager가 자동 실행되지 않습니다. 바탕화면에 바로가기(SVNSERVE Manager) 메뉴를 더블클릭합니다. 아래와 같은 트레이 아이콘이 뜹니다. 빨간색으로 표시한 것이 SVNSERVE Manager의 트레이 아이콘입니다.

      Windows Platform에서의 Subversion 설치 가이드 005

      트레이 아이콘을 더블클릭하면 다음과 같은 메뉴를 볼 수 있습니다.

      Windows Platform에서의 Subversion 설치 가이드 006

      알맞은 값을 설정한 다음에 ‘Hide’ 또는 ‘X’를 클릭합니다.

  3. WebSVN 설치

    1. 개요

      WebSVN은 대표적인 Subversion 전용 웹 인터페이스입니다. 이 외에도 Subversion을 지원하는 웹 인터페이스는 ViewCVS, ViewSVN, SubView 등이 있습니다. WebSVN을 사용하면 Subversion의 저장소(Repository)를 웹상에서 접근할 수 있습니다. 다음은 KDE 프로젝트의 WebSVN 사이트입니다.

      Windows Platform에서의 Subversion 설치 가이드 007

    2. 설치

      우선 WebSVN 을 다운로드 받습니다. 현재 버전은 1.61입니다. WebSVN_161.zip 파일의 압축을 풀면 install.txt 파일이 있습니다. 해당 파일을참조하시거나 다음의 설명에 따라 작업하십시오.

      1. IIS 서버 설치 및 작동

        우선 IIS 서버가 설치되어 있는지 확인합니다. 제어판 -> 관리도구 -> 인터넷 정보 서비스(IIS) 관리를 클릭합니다.

        Windows Platform에서의 Subversion 설치 가이드 008

        기본 웹 사이트가 (중지됨) 등으로 표시되어 있으면 시작시킵니다. 만약 위의 메뉴를찾을수 없다면 IIS 서버를 설치해야 합니다. 제어판 -> 프로그램 추가/제거 -> 윈도우 구성요소 추가/제거 -> 응용프로그램 서버(Windows 2003 Server의 경우에만 해당함) -> 인터넷 정보 서비스를 체크하고 확인 버튼을 클릭합니다.

      2. PHP 설치

        여기서는 버전 4.3.11을 설치하겠습니다. Windows installer로 된 설치 프로그램을 다운로드 받아서 실행합니다. 설치 프로그램의 안내에 따라 PHP를설치합니다. 설치 작업 마지막에 아래 두 메시지 창이 연달아 팝업되면 작업이 성공한 것입니다.

        Windows Platform에서의 Subversion 설치 가이드 009

        Windows Platform에서의 Subversion 설치 가이드 010

        만약 둘 중 하나라도 보이지 않는다면 IIS서버에 문제가 있는 것일 수 있습니다. 특히 다음의 사항을점검해야 합니다.

        1. IIS 서버가 설치되었는가.
        2. 기본 웹사이트가 시작되었는가.
        3. 기본 웹사이트의 TCP 포트가 80인가.

        만약 Apache 를 웹서버로 사용한다면 첫번째 메시지는 팝업되지 않습니다.

      3. IIS 설정

        제어판 -> 관리도구 -> 인터넷 정보 서비스(IIS) 관리 -> 기본 웹 사이트 -> 속성을 선택합니다.

        Windows Platform에서의 Subversion 설치 가이드 011

        기본 웹 사이트 등록정보 -> 문서를 선택합니다. 추가 버튼을 클릭하고 index.php를 써넣은 후 확인 버튼을 클릭합니다.

        Windows Platform에서의 Subversion 설치 가이드 012

      4. GnuWin32 Packages 설치

        WebSVN의 install.txt 문서를 읽으면 다음 소프트웨어를 설치해야 합니다.

        위의 사이트에서 다운로드 받아도 되며 GnuWin32 Packages 사이트에서 다운로드 받아도 됩니다. 후자 쪽이 더 편할 것입니다.

        전자와 후자의 경우 각각 응용프로그램이 설치되는 경로가 다릅니다. 기본 경로값은 다음과 같습니다.

        전자: C:\cygwin\bin
        후자: C:\Program Files\GnuWin32\bin

        위의 경로를 환경변수 PATH에 등록합니다. 방법은 Subversion의 바이너리 경로를 등록했을 때와동일합니다.

      5. WebSVN을 IIS 홈디렉토리(Document Root)에 복사하기

        WEBSVN 사이트에서 다운로드 받은 PHP 소스 디렉토리를 IIS서버 Document Root에 복사합니다. Document Root의 기본값은 다음과 같습니다.

        C:\Inetpub\wwwroot

        Document Root의 값을 모를 때는 다음의 절차를 따릅니다.

        1. 제어판 -> 관리도구 -> 인터넷정보서비스

        2. 기본 웹사이트를 선택한 후 마우스 오른쪽 버튼을 클릭합니다. Context Menu 중 등록정보를선택합니다.

          Windows Platform에서의 Subversion 설치 가이드 013

        3. 홈디렉토리 -> 로컬경로를 보면 Document Root의 경로를 알수있습니다

          Windows Platform에서의 Subversion 설치 가이드 014

      6. WebSVN 설정하기

        명령창에서 다음 명령어를 실행시킵니다. 이때 distconfig.inc 파일의 구체적 경로는 Document Root 경로에 따라 달라진다는 점을 주의하십시오.

        copy C:\Inetpub\wwwroot\WebSVN\include\distconfig.inc C:\Inetpub\wwwroot\WebSVN\include\config.inc

        Windows Platform에서의 Subversion 설치 가이드 015

        그리고 메모장으로 복사된 C:\Inetpub\wwwroot\WebSVN\include\config.inc 파일을 불러들입니다.

        1. config.inc 파일 수정 ? Platform 설정

          [변경 전]

          // Uncomment the next line if your running a windows server
          //
          // $config->setServerIsWindows(); 

          [변경 후]

          // Uncomment the next line if your running a windows server
          //
          $config->setServerIsWindows();
        2. config.inc 파일 수정 - Subversion Binary와 GnuWin32 Packages의 경로 설정s

          [변경 전]

          // Configure these lines if your commands aren't on your path. 
          //
          // $config->setSVNCommandPath("Path/to/svn and svnlook/ e.g. c:\\program files\\subversion\\bin");
          // $config->setDiffPath("Path/to/diff/command/");
          
          // For syntax colouring, if option enabled...
          // $config->setEnscriptPath("Path/to/enscript/command/");
          // $config->setSedPath("Path/to/sed/command/"); 
          
          // For delivered tarballs, if option enabled...
          // $config->setTarPath("Path/to/tar/command/");
          
          // For delivered GZIP'd files and tarballs, if option enabled...
          // $config->setGZipPath("Path/to/gzip/command/");

          [변경 후]

          // Configure these lines if your commands aren't on your path. 
          //
          $config->setSVNCommandPath("c:\\program files\\subversion\\bin");
          $config->setDiffPath("C:\\Program Files\\GnuWin32\\bin"); 
          
          // For syntax colouring, if option enabled...
          $config->setEnscriptPath("C:\\Program Files\\GnuWin32\\bin");
          $config->setSedPath("C:\\Program Files\\GnuWin32\\bin"); 
          
          // For delivered tarballs, if option enabled...
          $config->setTarPath("C:\\Program Files\\GnuWin32\\bin");
          
          // For delivered GZIP'd files and tarballs, if option enabled...
          $config->setGZipPath("C:\\Program Files\\GnuWin32\\bin"); 
        3. config.inc 파일 수정 ? Subversion 저장소 경로 설정

          여기서는 Subversion의 저장소(Repository)를 설정해보겠습니다. Config.inc의 주석에 따르면저장소 설정에는 크게 두 가지 방법이 있습니다. 첫번째는 각각의 저장소를 하나씩 추가하는 것입니다. 두번째는 저장소 Root 디렉토리를 설정하는 것입니다. 이 방법은 Root 디렉토리 하부에저장소를 두었을때 사용할 수 있습니다. 두 번째가 일반적이기 때문에 여기서는 두 번째 방법을 따르겠습니다.

          [변경 전]

          // To use the parent path method, uncomment the newt line and and replace the path with your one.  You
          // can call the function several times if you have several parent paths.
          //
          // $config->parentPath("Path/to/parent (e.g. c:\\svn)");

          [변경 후]

          // To use the parent path method, uncomment the newt line and and replace the path with your one.  You
          // can call the function several times if you have several parent paths.
          //
          $config->parentPath("D:\\SVNRepository"); 

          현재 문서작업 중인 컴퓨터의 Subversion 저장소 Root 디렉토리 경로는 "D:\SVNRepository" 입니다. 여러분의 환경에 따라 경로 값을 조정해야 합니다.

        4. config.inc 파일 수정 ? 웹사이트 템플릿(디자인) 선택하기

          원하는 템플릿의 주석만 제거하면 됩니다.

          // --- LOOK AND FEEL ---
          //
          // Uncomment ONLY the display file that you want.  
          
          $config->setTemplatePath("$locwebsvnreal/templates/Standard/");
          // $config->setTemplatePath("$locwebsvnreal/templates/BlueGrey/");
          // $config->setTemplatePath("$locwebsvnreal/templates/Zinn/");
          
          
        5. config.inc 파일 수정 ? 언어 설정

          WebSVN은 다양한 언어(인코딩)을 지원합니다. Config.inc 파일 중“// --- LANGUAGE SETUP ---“ 섹션에서 원하는 언어를 선택하면 됩니다. 아무것도 선택하지 않으면 English가 기본값입니다.

        6. config.inc 파일 수정 ? Tarball Download 활성화

          Tarball Download도 Subversion 저장소 설정과 같이 개별 저장소마다 활성화 여부를 지정할 수도 있습니다. 여기서는 모든 저장소에 대해 tarball download 기능을 활성화하겠습니다.

          [변경 전]

          // --- TARBALLS ---
          
          // You need tar and gzip installed on your system.  Set the paths above if necessary
          //
          // Uncomment the line below to offer a tarball download option across all your
          // repositories.
          //
          // $config->allowDownload();

          [변경 후]

          // --- TARBALLS ---
          
          // You need tar and gzip installed on your system.  Set the paths above if necessary
          //
          // Uncomment the line below to offer a tarball download option across all your
          // repositories.
          //
          $config->sallowDownload();
        7. config.inc 파일 수정 ? Syntax Colorization

          [변경 전]

          // --- COLOURISATION ---
          
          // Uncomment this line if you want to use Enscript to colourise your file listings
          //
          // You'll need Enscript version 1.6 or higher AND Sed installed to use this feature. 
          // Set the path above.
          //
          // $config->useEnscript(); 

          [변경 후]

          // --- COLOURISATION ---
          
          // Uncomment this line if you want to use Enscript to colourise your file listings
          //
          // You'll need Enscript version 1.6 or higher AND Sed installed to use this feature. 
          // Set the path above.
          //
          $config->useEnscript(); 
  4. 디렉토리 보안 설정

    1. tarball download

      WebSVN은 C:\WINNT\Temp 또는 C:\\Windows\Temp 디렉토리에 tarball 파일을 생성합니다. 그러므로 일반 웹사이트 사용자가 tarball download 기능을 사용하려면 IUSR_<machinename>에게 C:\WINNT\Temp에 대한 읽기 접근 권한을 부여해야 합니다. 다음의 절차를 따릅니다.

      • C:\WINNT\Temp를 선택하고 마우스 오른쪽 버튼을 클릭합니다. 컨텍스트 메뉴에서 등록 정보를선택합니다.

        Windows Platform에서의 Subversion 설치 가이드 016

      • 보안 -> 추가를 선택하면 다음과 같은 창이 뜹니다.

        Windows Platform에서의 Subversion 설치 가이드 017

      • IUSR_<machinename>를 추가하고 확인 버튼을 누릅니다.

      • IUSR_<machinename>에게 읽기 권한을 부여합니다.

        Windows Platform에서의 Subversion 설치 가이드 018

    2. Cache

      • C:\Inetpub\wwwroot\WebSVN\cache를 선택하고 마우스 오른쪽 버튼을 클릭합니다. 컨텍스트 메뉴에서 등록 정보를 선택합니다.

      • 보안 -> 추가를 선택합니다.

      • IUSR_<machinename>를 추가하고 확인 버튼을 누릅니다.

      • IUSR_<machinename>에게 읽기, 쓰기 권한을 부여합니다.

        Windows Platform에서의 Subversion 설치 가이드 019

  5. 테스트

    인터넷 익스플로러를 열고 주소 창에 다음 주소를 입력합니다.

    http://localhost/WebSvn/ 또는 http://localhost/WebSvn/index.php

    1. ‘Directory Listing Denied’ 에러

      Windows Platform에서의 Subversion 설치 가이드 020

      위의 메시지는 PHP 설정 후 IIS의 기본 콘텐트 페이지에 index.php를 추가하지 않았기 때문에 보이는 것입니다.sss

    2. 404 에러

      만약 다음과 같은 ‘404, 페이지를 찾을 수 없습니다’ 에러가 발생하면 PHP에 문제가 있을 가능성이 높습니다.

      Windows Platform에서의 Subversion 설치 가이드 021

      PHP를 다시 설치할 때는 다음 순서에 유의해야 합니다.

      1. 제어판 -> 프로그램 추가/제거 -> PHP 4.3.11

      2. C:\WINNT\php.ini 또는 C:\Windows\php.ini 파일을 제거합니다.

      3. PHP 4.3.11 을 다시 설치합니다.

    3. dl.php 오류

      Tarball Download 기능을 사용해 봅시다.

      Windows Platform에서의 Subversion 설치 가이드 022

      만약 다음과 같은 메시지가 뜬다면 디렉토리 보안 설정이 잘못된 것입니다.

      Warning: chdir(): No such file or directory (errno 2) in c:\inetpub\wwwroot\websvn\dl.php on line 65
      Warning: filesize(): Stat failed for branches.tar.gz (errno=2 - No such file or directory) in c:\inetpub\wwwroot\websvn\dl.php on line 70
      Unable to open file branches.tar.gz
      Warning: fclose(): supplied argument is not a valid stream resource in c:\inetpub\wwwroot\websvn\dl.php on line 86s
    4. permission 오류

      Warning: gzopen(.\cache\D__SVNRepository_public_mods_17): failed to open stream: Permission denied in c:\inetpub\wwwroot\websvn\include\svnlook.inc on line 301

      위와 같은 Permission 오류가 발생하면 메시지를 유심히 살펴봐야 합니다. 위의 메시지를 읽어보면 cache 디렉토리에 파일 쓰기를 하려다가 실패한 것을 알 수 있습니다. 해당 디렉토리에 적절한 권한(이 경우에는 쓰기권한)을 부여하면 됩니다.

  6. 기타

    1. WebSVN에 .NET C# Syntax Colourisation 기능 추가하기

    2. csharp.st 파일 다운로드

      아래 사이트에서 csharp.st 파일을 구합니다.

      http://www.xml-blog.com/archives/000282.html
      tps://sourceforge.net/tracker/?func=detail&atid=368760&aid=690128&group_id=18760
      Download

      만약 두 번째 사이트에서 csharp.st 파일의 내용을 복사해서 csharp.st 파일을 만들 때는 주의해야 합니다. 메모장으로 csharp.st 파일을 만들면 안 됩니다. ‘UNIX 종료 ? LF’ 형식을 지원해 주는 텍스트 편집기를 사용해야 합니다.

      다운로드 받은 csharp.st 파일을 [Enscript-install-path]\share\enscript\hl 디렉토리 안에 복사합니다.
      (예: “C:\Program Files\GnuWin32\share\enscript\hl”)

    3. setup.inc 파일 수정

      [WebSVN-install-path]\include\setup.inc (예: C:\Inetpub\wwwroot\WebSVN\include\setup.inc) 파일을 메모장으로 불러옵니다. 그리고 다음과 같이 setup.inc 파일을 수정합니다.

      [변경 전]

      // List of extensions recognised by enscript.
      
      $extEnscript = array
      (
      ".ada"     => "ada",
      ".adb"     => "ada",
      ".ads"     => "ada",
      ".awk"     => "awk",
      ".c"       => "c",
      ".c++"     => "cpp",
      ".cc"      => "cpp",
      ".cpp"     => "cpp",
      이하 생략……

      [변경 후]

      // List of extensions recognised by enscript.
      
      $extEnscript = array
      (
      ".ada"     => "ada",
      ".adb"     => "ada",
      ".ads"     => "ada",
      ".awk"     => "awk",
      ".c"       => "c",
      ".c++"     => "cpp",
      ".cc"      => "cpp",
      ".cpp"     => "cpp",
      ".cs"      => "csharp", 


피드백과 지원

이 문서에 대한 피드백이나 지원을 하고 싶으신 분은 저자에게 연락해주시기 바랍니다. 발전적인 정보 제공 및 건의는 언제나 환영합니다.

출처: http://kaistizen.net/EE/index.php/project/subversion/subversion_on_windows_how_to/

top

Trackback Address :: http://www.ssial.com/trackback/289 관련글 쓰기

  1. Burberry Bags 2011/10/13 17:03 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  2. abercrombie fitch 2011/12/13 21:11 댓글주소 | 수정/삭제 | 댓글

    Well, very good post with informative information. I really appreciate the fact that you approach these topics from a stand point of knowledge and information.

  3. abercrombie and fitch 2011/12/13 21:14 댓글주소 | 수정/삭제 | 댓글

    I think the author’s writing is very good, although the point of view a little bit different, but really is a good article, and the author can hope to have time to discuss some problems.

Write a comment