Trac安装(windows)
-Uper
Trac is an enhanced wiki and issue tracking system for software development projects.是一款轻量级工具。
我装的版本是当前最新版本Trac-0.11.1,建议不要装最新版本,当其依赖的其他软件没有随之升级时,该最新版本也无法使用。
安装trac之前要确保以下软件已经安装:
1. python-2.5.2 (最重要的,其后的软件会自动找到其安装路径)
2. setuptools-0.6c9.win32-py2.5 (命令easy_install 可以被使用)
3. MySQL
4. MySQL_python-1.2.2-py2.5-win32
5. Genshi-0.5.1-py2.5-win32.egg (easy_install Genshi)
Genshi is a Python library that provides an integrated set of components for parsing, generating, and processing HTML, XML or other textual content for output generation on the web.
6. Trac-0.11.1
解压trac.zip to folder named d:/trac,
easy_install d:/trac
配置mysql,字符集有点问题,必须是utf-8
1.CREATE DATABASE trac DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
2.CREATE USER tracuser IDENTIFIED BY 'password';
GRANT ALL ON trac.* TO tracuser;
user name/password: tracuser/password
配置init环境
新建2个文件夹D:/project/trac和 D:/project/repo
trac-admin D:/project/trac initenv
[my project]>my_proj
[sqlite:db/trac.db]> mysql://tracuser:[email protected]:3306/trac
[svn]>svn
[/path/to/repos]> D:/project/repo
tracd --port 8000 D:/project/trac
在IE打开URL:http://127.0.0.1:8000/trac
页面成功打开!