http://sourceforge.net/project/showfiles.php?group_id=2435
Automated MinGW InstallerのMinGW-5.1.6.exeを選択
MSYS→BaseSystem→msys-1.0.11→msysCORE-1.0.11-bin.tar.gzを選択
環境変数「path」に「C:\msys\1.0\bin;C:\MinGW\bin;」を追加
MinGW→pexports→pexports-0.44-1→pexports-0.44-1-mingw32-bin.tar.lzmaをダウンロード
pexports-0.44-1-mingw32-bin.tar.tarを7zのツールで解凍して、
個別インストール用
python-2.6.2.msi http://www.python.org/
//clearsilver-0.9.14.win32-py2.4.exe http://www.clearsilver.net/downloads/
svn-python-1.5.6.win32-py2.5.exe http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
Trac-0.11.7.ja1.zip http://www.i-act.co.jp/project/products/products.html
pysqlite-2.6.0.win32-py2.6.exe http://code.google.com/p/pysqlite/downloads/list
docutils-0.6.tar.gz http://docutils.sourceforge.net/
mod_python-3.3.1.win32-py2.5-Apache2.2.exe http://ftp.riken.jp/net/apache/httpd/modpython/win/3.3.1/
一括インストール用
http://sourceforge.jp/projects/traclight/
参考
http://freedom.mitene.or.jp/~mizhiro/fswiki/wiki.cgi?page=Trac
http://yuichi.tea-nifty.com/blog/2006/11/trac_viewvc_etc_9ece.html
Subversion(最新版)
TortoiseSVN(最新版)
Apache(最新版)
Python(2.5)
Subversion Python bindings(svn-python-1.5.6.win32-py2.5.exe)
pysqlite(pysqlite-2.6.0.win32-py2.5.exe)
genshi(Genshi-0.6.win32.exe)
setuptools(最新版)
trac(Trac-0.11.7.ja1.zip)
mod_python(mod_python-3.3.1.win32-py2.5-Apache2.2.exe)
ok @subversionインストール
ok ATortoiseSVNインストール
ok BPYTHONインストール(python-2.6.2.msi)
環境変数「path」に追加
ok CSubversion Python bindingsをインストール(svn-python-1.5.6.win32-py2.6.exe)
ok Dpysqliteをインストール(pysqlite-2.6.0.win32-py2.6.exe)
genshiをインストール
http://pypi.python.org/pypi/setuptools
setuptoolsインストール
Htracインストール(Trac-0.11.7.ja1.zip)[python setup.py install]
ITracでプロジェクトを作成する
C:\Python26\Scripts\trac-admin C:\TracRepo\trac\project initenv
Project Name [My Project]>
Database connection string [sqlite:db/trac.db]>
Path to repository [/var/svn/test]> C:/TracRepo/svn
Templates directory [C:\TRAC-0.9.6ja\Python24\share\trac\templates]>
確認
C:\Python26\Scripts\tracd --port 8000 C:\TracRepo\trac\project
Japacheのhttp.confファイルの編集
LoadModule python_module modules/mod_python.so
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracUriRoot /
PythonOption TracEnvParentDir c:/TRAC-0.9.6ja/repos/trac
AuthType Basic
AuthName "trac"
AuthUserFile c:/TRAC-0.9.6ja/repos/trac/trac.htpasswd
Require valid-user
Ktrac.iniの設定
wikiでテキストファイルを添付すると、文字が化けるので、文字コードの指定を行う。
C:\TRAC-0.9.6ja\repos\trac\project\conf\trac.iniの「default_charset」を変更
前)default_charset = iso-8859-15
↓
後)default_charset = Shift_JIS
Lapacheの再起動
stop→start