sqlite-3_3_11.zip 數據庫,解開(kāi)是一個(gè)EXE http://www.sqlite.org/download.html
clearsilver-0.9.14.win32-py2.4.exe 顯示頁(yè)面的模板文件這個(gè)目前沒(méi)2.5的版本。所以嘛…… (Linux版本應該更高點(diǎn)) http://www.clearsilver.net/
trac-0.10.3.win32.exe 目前的最新版本
svn-python-1.4.2.win32-py2.4.exe 這個(gè)是訪(fǎng)問(wèn)svn的程序包,就是Subversion的python接口。
svn-1.4.2-setup.exe
SVNService.exe 可以把SVN設置成服務(wù)
客戶(hù)端
TortoiseSVN-1.4.1.7992-win32-svn-1.4.2.msi 新版本,還可以下一個(gè)語(yǔ)言包,都在subversion的官方能下到。
二 安裝程序
接下來(lái),安裝。WINDOWS下安裝還是都會(huì )的不講了。路徑自己設置,我這里說(shuō)明下路徑是為了更好理解下面用到的命令
先裝python C:\python (其他的都會(huì )自動(dòng)識別,所以這個(gè)必須先裝)
pysqlite 自動(dòng)根據python路徑默認
clearsilver 同上
SVN E:\Subversion
svn-python 默認
Trac 自動(dòng)根據python路徑默認C:\Python24\share\trac
三 設置環(huán)境
先設置SVN的源碼庫,因為裝了SVN,環(huán)境變量已經(jīng)有了,直接輸入即可。

輸入C:\>svnadmin create e:\repository\project
E盤(pán)建立了一個(gè)repository文件夾,作為SVN源碼庫,下面建立了project這個(gè)項目的源碼管理
我在E盤(pán)建立一個(gè)Trac文件夾,切換到python目錄
輸入 C:\Python24>python trac-admin e:\trac\project initenv
建立了trac的環(huán)境
然后就要求輸入項目名字,我輸入了myproject。

這個(gè)是詢(xún)問(wèn)數據庫連接類(lèi)型,我們用的sqlite默認就可以了。直接回車(chē)
接下來(lái)是
Please specify the type of version control system,
By default, it will be svn.
If you don't want to use Trac with version control integration,
choose the default here and don't specify a repository directory.
in the next question.
Repository type [svn]>
詢(xún)問(wèn)版本庫類(lèi)型,也是默認SVN,回車(chē)
Please specify the absolute path to the version control
repository, or leave it blank to use Trac without a repository.
You can also set the repository location later.
Path to repository [/path/to/repos]> e:/repository/project
詢(xún)問(wèn)源碼庫位置,這個(gè)就是剛才SVN里建立了這個(gè)項目的源碼庫,輸入即可?;剀?chē)
Please enter location of Trac page templates.
Default is the location of the site-wide templates installed with Trac.
Templates directory [C:\Python24\share\trac\templates]>
詢(xún)問(wèn)模板路徑,這個(gè)默認?;剀?chē)
接下來(lái)就是自動(dòng)生成一系列模板
最后顯示Congratulations!
然后輸入:
C:\Python24>python scripts/tracd --port 8080 e:/trac/project
這個(gè)窗口就不能關(guān)閉了。
現在可以訪(fǎng)問(wèn)8080端口。

大功搞成?。?!
安裝前如果弄清楚這些文件相互關(guān)系,并找對版本,就成功了80%。第一次安裝,經(jīng)驗不足,寫(xiě)的欠缺的地方,請大家指出。我也納悶, sqlite-3_3_11.zip解開(kāi)的EXE不是安裝文件,在安裝時(shí)沒(méi)有用到,就默認了這個(gè)數據庫而已。估計接下來(lái)配置的時(shí)候要用到。

