Fedora Linux环境配置Apache+SVN+Trac(3)

3)配置Trac
trac是一个非常优秀的源代码浏览工具,现在也很流行。

安装trac之前,还需要安装一些其他东西,首先是Python,这个一般都安装了,其次是ClearSilver,最后是一个能够被python支持的数据库,默认是SQLite。

上面的要求,一般来说,只有ClearSilver没有安装,下载最新的版本,分别执行./configure –with-python=/usr/bin/python ; make; make install就搞定了。

然后下载最新的trac程序,解压,执行下面的指令
./setup.py install
安装完成后,开始配置

[root@Fedora trac-0.10.4]# trac-admin /home/ytqpki initenv
Creating a new Trac environment at /home/ytqpki
Trac will first ask a few questions about your environment
in order to initalize and prepare the project database.
Please enter the name of your project.
This name will be used in page titles and descriptions.
Project Name [My Project]> ytqpki
Please specify the connection string for the database to use.
By default, a local SQLite database is created in the environment
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for the exact
connection string syntax).
Database connection string [sqlite:db/trac.db]>
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]>
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]> /data/ytqpki
Please enter location of Trac page templates.
Default is the location of the site-wide templates installed with Trac.
Templates directory [/usr/share/trac/templates]>
Creating and Initializing Project
Installing default wiki pages
/usr/share/trac/wiki-default/TracFastCgi => TracFastCgi
/usr/share/trac/wiki-default/TracIni => TracIni
/usr/share/trac/wiki-default/TracReports => TracReports
/usr/share/trac/wiki-default/TracTickets => TracTickets
/usr/share/trac/wiki-default/TracSearch => TracSearch
/usr/share/trac/wiki-default/TracModPython => TracModPython
/usr/share/trac/wiki-default/WikiRestructuredTextLinks => WikiRestructuredTextLinks
/usr/share/trac/wiki-default/InterTrac => InterTrac
/usr/share/trac/wiki-default/CamelCase => CamelCase
/usr/share/trac/wiki-default/TracBrowser => TracBrowser
/usr/share/trac/wiki-default/WikiNewPage => WikiNewPage
/usr/share/trac/wiki-default/TracAccessibility => TracAccessibility
/usr/share/trac/wiki-default/InterWiki => InterWiki
/usr/share/trac/wiki-default/TracNotification => TracNotification
/usr/share/trac/wiki-default/TracLinks => TracLinks
/usr/share/trac/wiki-default/TracCgi => TracCgi
/usr/share/trac/wiki-default/TracRevisionLog => TracRevisionLog
/usr/share/trac/wiki-default/WikiFormatting => WikiFormatting
/usr/share/trac/wiki-default/TracAdmin => TracAdmin
Warning:
You should install the SVN bindings
———————————————————————
Project environment for ‘ytqpki’ created.
You may now configure the environment by editing the file:
/home/ytqpki/conf/trac.ini
If you’d like to take this new project environment for a test drive,
try running the Trac standalone web server `tracd`:
tracd –port 8000 /home/ytqpki
Then point your browser to :8000/ytqp…
There you can also browse the documentation for your installed
version of Trac, including information on further setup (such as
deploying Trac to a real web server).
The latest documentation can also always be found on the project
website:

Congratulations!

如果最后出现类似上面的信息,表示配置成功,trac可以独立运行,也可以集成到apache里,我们先看独立运行的方式

tracd –port 8000 /home/ytqpki
打开浏览器,访问:8000/ytqp…
应该可以trac的默认首页,类似下面这样:

Fedora Linux环境配置Apache+SVN+Trac

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyfywz.html