公司用trac管理项目,自己也装一个
trac1.2的安装说明:
首先要安装三个软件包:
2. 安装setuptools
说明:
在上下载安装文件,
按照上的说明:
在shell下运行下这个文件,安装到site-packages:
- $ sudo sh setuptools-0.6c11-py2.6.egg
输出:
- Processing setuptools-0.6c11-py2.6.egg
-
Copying setuptools-0.6c11-py2.6.egg to /usr/local/lib/python2.6/dist-packages
-
Adding setuptools 0.6c11 to easy-install.pth file
-
Installing easy_install script to /usr/local/bin
-
Installing easy_install-2.6 script to /usr/local/bin
-
-
Installed /usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg
-
Processing dependencies for setuptools==0.6c11
-
Finished processing dependencies for setuptools==0.6c11
装好之后,今天就到这,继续下面安装trac
3. 安装Genshi
第一次听说这个东东,查了下大概是:
- A Python library to generate and process HTML, XML or other text content on the web.
- from:
很简单直接:
- $ sudo easy_install Genshi
output:
- Searching for Genshi
-
Reading
-
Reading
-
Reading wiki/Download
-
Best match: Genshi 0.6
-
Downloading
-
Processing Genshi-0.6-py2.6.egg
-
Moving Genshi-0.6-py2.6.egg to /usr/local/lib/python2.6/dist-packages
-
Adding Genshi 0.6 to easy-install.pth file
-
-
Installed /usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg
-
Processing dependencies for Genshi
-
Finished processing dependencies for Genshi
4. 数据库直接用python2.6.6自带的
5. 版本控制系统用subversion
没有装得话直接
- $ sudo apt-get install subversion
有点要注意的是subversion必须和trac装载一台机器上。我都是在本机测试,没这个问题了
6. webserver
先用trac自带的服务器,挺方便的
7. Babel
- A collection of tools for internationalizing Python applications
好像trac不装这个只能支持英文。主页:
用svn checkout:
版本557.或者直接安装:
output:
- Searching for Babel
-
Reading
-
Reading
-
Reading wiki/Download
-
Best match: Babel 0.9.5
-
Downloading
-
Processing Babel-0.9.5-py2.6.egg
-
creating /usr/local/lib/python2.6/dist-packages/Babel-0.9.5-py2.6.egg
-
Extracting Babel-0.9.5-py2.6.egg to /usr/local/lib/python2.6/dist-packages
-
Adding Babel 0.9.5 to easy-install.pth file
-
Installing pybabel script to /usr/local/bin
-
-
Installed /usr/local/lib/python2.6/dist-packages/Babel-0.9.5-py2.6.egg
-
Processing dependencies for Babel
-
Finished processing dependencies for Babel
8. 还有其他的一堆包,先不装了
准备工作完毕,开始安装trac了
上面介绍了两种方法,一个直接
- $ easy_install Trac
-
$ easy_install -U Trac
另外用svn check out 出来安装,
我用第二种,
1. checkout
2. 安装
- $ sudo python ./setup.py install
安装成功
有点值得注意,如果相关的python包在这一步之前没有安装,后来要用,在安装的,要重新安装trac才能生效。
3. 还有一个相关软件pip
先不安装了
至此安装完毕
阅读(919) | 评论(0) | 转发(0) |