여기서는, 기존에 VisualSVN Server 를 사용하여 Project 를 관리하고 있는 상황에서 Trac 을 추가적으로 설치하는 것에 대한 설명이다.
[이 설명에 대한 조건]
1. 본인이 기존에 관리하는 Project 의 Repository 가 TestProject 라고 가정하고 설명한다.
2. 본인이 관리하는 TestProject Repository 는 C:\Repositories\TestProject 이다.
3. VisualSVN 은 Version 2.1 이상이여야 한다. 만일 그 이전 버전이라면 최신 버전을 설치하면 Upgrade 된다.
Step 1. VisualSVN Server // Installing Trac with VisualSVN Server 설치
참고 URL : http://www.visualsvn.com/server/trac/
1. http://www.visualsvn.com/files/VisualSVN-Server-Trac-2.1.1.21699.zip 파일을 다운로드한다.
2. 기본 설정으로 VisualSVN 을 설치했다면, C:\Program Files\Visual SVN Server\ 아래에 다운받은 파일을 압축해제 한다.
3. C:\Trac 폴더를 생성한다.
4. C:\Trac 폴더의 속성창을 열고 보안 옵션에 Network Service 를 추가한 후, 모든 권한을 부여한다.
5. 시작 -> 실행 -> cmd 를 입력하여 Command Shell 을 실행한다.
6. Command Prompt 에서 cd C:\Program Files\Visual SVN Server\Trac 을 입력한다.
7. Command Prompt 에서 trac-admin.bat C:\Trac\TestProject initenv 를 실행하고, 모든 대답에 기본값을 사용하되, Repository path 를 물을 때는 기존에 관리하던 Repository Full Path 를 입력해 주어야 한다. 본인의 경우 C:\Repositories\TestProject 를 입력한다.
8. 내 컴퓨터 -> 속성 -> 고급 -> 시스템 변수 에 PYTHONHOME=C:\Program Files\VisualSVN Server\Trac\python 를 추가한다.
9. 메모장을 실행하여 C:\Program Files\VisualSVN Server\conf\httpd-custom.conf 파일을 다음과 같이 편집한다.
(1) Subversion 인증의 경우,
LoadModule python_module "trac/python/mod_python_so.pyd"
LoadModule authz_user_module bin/mod_authz_user.so
<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir C:\Trac
PythonOption TracUriRoot /trac
AuthName "Trac"
AuthType Basic
AuthBasicProvider file
AuthUserFile "C:/Repositories/htpasswd"
Require valid-user
</Location>
을 입력하고,
(2) Windows 인증 혹은 Domain 인증의 경우,
LoadModule python_module "trac/python/mod_python_so.pyd"
LoadModule authz_user_module bin/mod_authz_user.so
<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir C:\Trac
PythonOption TracUriRoot /trac
AuthName "Trac"
AuthType VisualSVN
Require valid-user
</Location>
을 입력한 후 저장하고 빠져나온다.
9. 여기까지가 설치의 전부이며, VisualSVN Server 를 재시작한다.
10. Browser 에서 http://localhost/trac/ (이 URL 또한 VisualSVN Server 설치 시 설정한 Port 를 추가적으로 입력하거나 SSL 접속을 위해 http 대신 https 를 입력해야 할 경우도 있다.)을 입력하면 Trac 창이 뜨고 해당하는 Project Link 를 Click 하면 사용자 계정을 묻는다.
Step2. 0.12 Version 으로의 Upgrade 와 한글화
1. C:\Program Files\VisualSVN Server\trac\python\Lib\site-packages 폴더에서 libsvn, mod_python, svn 폴더만 남기고 나머지는 삭제한다.
2. VisualSVN Server Service 를 정지시킨다.
3. C:\Tmp 폴더를 생성한다.
4. http://unicode.org/Public/cldr/1.6.1/core.zip 을 다운로드하여 C:\Temp\Core 에 압축을 푼다.
5. http://peak.telecommunity.com/dist/ez_setup.py 을 C:\Temp 에 다운로드한다.
6. Command Shell 창을 실행한다.
7. set PATH=%PYTHONHOME%;%PYTHONHOME%\scripts;%PATH% 을 실행한다.
8. http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg#md5=ca37b1ff16fa2ede6e19383e7b59245a 을 C:\Temp 에 다운로드한다.
9. 다음의 명령을 Command Shell 에서 실행한다.
[SetupTools 설치]
> cd \temp
> python ez_setup.py setuptools-0.6c9-py2.6.egg
[Genshi 설치]
> svn co http://svn.edgewall.org/repos/genshi/trunk/ genshi
> cd genshi
> python setup.py egg_info
> python setup.py install
[Babel 설치]
> cd \temp
> svn co http://svn.edgewall.org/repos/babel/trunk babel
> cd babel
> easy_install ElementTree
> python setup.py egg_info
g_info > python c:\temp\babel\scripts\import_cldr.py c:\temp\core
> python setup.py install
> easy_install pytz
> easy_install docutils
> easy_install epydoc
> easy_install Pygments
> python setup.py build_doc
>>python > python setup.py test_doc
[Trac 설치]
> cd \temp
> svn export https://svn.edgewall.com/repos/trac/trunkhttps://svn.edgewall.com/repos/trac/trunk trac
> cd trac
> python setup.py compile_catalog --use-fuzzy
> python setup.py install
> cd C:\Program Files\VisualSVN Server\trac
사용중인 trac을 업그레이드
> trac-admin c:\trac\TestProject upgrade
[또는 trac 을 새로 생성]로[Eh[Ehsms
> trac-admin c:\trac\TestProject initenv
10. 정지시켰던 VisualSVN Service 를 재실행한다.
비쥬얼 svn 에다가 trac 한글화를 할려고 하는데요..
답글삭제SetupTools 설치 하면서 import sys, os에서
os를 찾을수 없다고 계속 에러나네요.
어떻게 해야 하는건가요