Install and configure TRAC 0.12 in Windows

Source: Internet
Author: User

Lai Yonghao (http://laiyonghao.com)
TRAC is a web-based, lightweight project management tool written in Python. its official website is http://trac.edgewall.org /. It integrates enhanced wiki functions and version control functions, and can be expanded through plug-ins. Because of the large number of plug-ins, comprehensive functions, and even comparable to many commercial CMS systems, it is widely used. Its ticket management and workflow plug-ins (http://trac-hacks.org/) allow it to also easily perform simple business collaboration and process control.


0. Make sure that python and setuptools are installed. Python versions must be at least 2.4 (I use 2.6.2), and setuptools must be at least 0.6.
1. Use setuptools to install docutils, pygments, and pytz. Run easy_install XXX on the command line.
2. Install genshi, Babel, and TRAC from SVN. if the version installed through easy_install is too low, it will fail. I installed them to D:/edgewall.
SVN Co http://svn.edgewall.org/repos/babel/trunk Babel
SVN Co http://svn.edgewall.org/repos/genshi/trunk genshi
SVN Co http://svn.edgewall.org/repos/trac/trunk TRAC
SVN Co http://www.unicode.org/repos/cldr/tags/release-1-7-2/common/ cldr
After SVN Co, go to the genshi directory and run Python setup. py install.
Go to the Babel directory and run python./scripts/import_cldr.py ../cldr to import the cldr. This is a step necessary to correctly install the multi-language version. Be sure to pay attention. After cldr is imported, execute Python setup. py install. This is required.
Next, go to the TRAC directory. Note that we need to use Chinese translation. Therefore, go to the TRAC directory and execute Python setup. py compile_catalog-F to compile the Language Pack in a cost-effective version. Run Python setup. py install.
First, verify whether the installation is successful. Execute tracd in any directory. If the tracd usage appears, it will be correct:
Usage: tracd-script.py [Options] [projenv]...
3. Create a project environment. Run trac-Admin D:/trac_prj initenv in any directory to create a new project environment in D:/trac_prj.
In the recommended environment, it will ask you about the project name. I just entered test and asked you about database settings. I used the default SQLite, so I threw a carriage return and got it done. Then I saw the command line spit out a bunch of characters and ignored it. The last line was congratulations! The project environment is successfully created. However, I have never seen success.
4. Run tracd-P 8080 D:/trac_prj on the command line and enter http: // 127.0.0.1: 8000/trac_prj to view the TRAC page. Okay. The next step is user verification.
5. tracd has an auth parameter. You can specify the authentication rules. However, tracd uses Apache. the htpasswd file is saved. in Linux, you can also conveniently use htpasswd/path/to/ENV /. to add htpasswd username, it is not that easy in windows. Fortunately, TRAC provides a Python script (see the http://trac.edgewall.org/demo-0.12/wiki/TracStandalone#GeneratingPasswordsWithoutApache) to easily generate account and password files. Save the script and run the python trac-digest.py-u username-P password> C:/digest.txt command to add new users to C:/digest.txt. Run the following command to start tracd:
Tracd -- Port 8000 -- auth = proj_name, C:/digest.txt, trac c:/path/to/proj_name
Then you can log on to the TRAC system.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.