下面是安装Trac的简明教程!!
经过这次安装,发现下载正确的程序就完成了工作的80%,因为很多安装都是完全自动的,而配置又非常的简单。本文的所有下载都是针对Subversion1.4.2,不要搞错阿,下面是要下载的程序:
Trac: [url]http://ftp.edgewall.com/pub/trac/trac-0.10.2.win32.exe[/url]
Clearsilver: [url]http://www.clearsilver.net/downl[/url] ... .14.win32-py2.4.exe
Pysqlite: [url]http://initd.org/pub/software/py[/url] ... 3.2.win32-py2.4.exe
svn-python: [url]http://subversion.tigris.org/dow[/url] ... 4.2.win32-py2.4.exe
(1)Python是必须的运行环境.
(2)Clearsilver是Trac需要的页面显示框架.
(3)Pysqlite是访问sqlite数据库的程序包.
(4)svn-python是访问Subversion的程序包。
2. 安装程序
请先安装Python,然后其他程序安装能够自动识别Python,只需默认安装即可。
3,配置Trac
我的Python安装在“C:\Python24”,我们在E盘创建了一个目录trac,作为trac环境存放的目录,然后在“C:\Python24\Scripts”下运行
D:\Python24\Scripts>python scripts/trac-admin e:\trac initenv
Database connection string [sqlite:db/trac.db]
我们用的sqlite默认就可以了。直接回车
By default, it will be svn.
choose the default here and don't specify a repository directory.
in the next question.
询问版本库类型,也是默认SVN,回车
repository, or leave it blank to use Trac without a repository.
You can also set the repository location later.
询问源码库位置,这个就是刚才SVN里建立了这个项目的源码库,输入即可。回车
Please enter location of Trac page templates.
Default is the location of the site-wide templates installed with Trac.
询问模板路径,这个默认。回车
最后显示Congratulations!
现在启动服务器即可,运行:
default_charset = UTF-8
总结
大家如果还有什么其他需求,可以继续探索。其实Trac的安装过程并不复杂,只是因为同时要描述多种可能,所以让人摸不着头脑。在本文介绍的基础上,你还可以有很多选择,例如使用MySQL数据库(要安装MySQL和MySQL的Python库),或者使用Apache(需要安装Apache和对应的Python集成工具)。