Trac is an application platform that integrates Wiki and problem tracking management systems for software development projects. It is an open source software application. Trac has established a Web application for software project management in a simple way to help developers better write high-quality software. Trac is developed using the Python language. Therefore, when running Trac, you need support from the Python environment. This is installed in Ubuntu10.4. The system comes with Python2.6.5, which must be downloaded.
Trac is an application platform that integrates Wiki and problem tracking management systems for software development projects. It is an open source software application. Trac has established a Web application for software project management in a simple way to help developers better write high-quality software.
Trac is developed using the Python language. Therefore, when running Trac, you need support from the Python environment.
This is installed in Ubuntu 10.4 and the system comes with Python2.6.5. You need to download apache2, Trac0.12, subversion1.6.13, mysql/pg.
The installation of apache2 and subversion1.6.13 is not detailed here.
The http://trac.edgewall.org/wiki/TracInstall page tells us the prerequisites for re-installing Trac and how to install it. The installation can be completed according to the instructions here, but such problems may also occur in the middle.
Python-dev installation, the system does not contain Development kits, so apt-get install Python-dev;
Download setuptools (http://pypi.python.org/pypi/setuptools) to find the setuptools that match the python version of the system, and then execute
Sh setuptools-0.6c9-py2.4.egg -- prefix = ~ Installation;
Easy_install Genshi install genshi. www.linuxidc.com allows the system to find the most appropriate version of software for installation;
Apt-get install libsqlite3-dev
Http://sourceforge.net/projects/mysql-python/download mysql-pythonand install it as instructed by reame.
Install mod_wsgi (http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac
) And mod_wsgi (http://modpython.org /),
./Configure -- with-apxs =/XXX/bin/apxs make the following error occurs:
Connobject. c: In the '_ conn_read' function:
Connobject. c: 142: Error: request member 'Next' in non-structure or union'
Apxs: Error: Command failed with rc = 65536
Make [1]:
* ** [Mod_python.so] Error 1
Make [1]: leaving the Directory
'/Root/sourceCode/httpd-2.2.15/modules/python/mod_python-3.3.1/src'
Make: *** [do_dso] Error 2
Solution: Modify the connobject. c 142nd line! (B = APR_BRIGADE_SENTINEL (B) |
Changed! (B = APR_BRIGADE_SENTINEL (bb) |
Install easy_install Babel, docutil, pygments, and pytz
Unzip trac and enter the price. Execute python./setup. py install. The installation is complete.
Test:
1) Run python to enter the python Runtime Environment
2) enter the following python code for testing.
- ImportMySQLdb
- Test = MySQLdb. connect (db ='Mydb', Host ='Myhost', User ='U', Passwd ='P')
- Cur = test. cursor ()
- Cur.exe cute ('Show databases ;')
- ForDataInCur. fetchall ():
- PrintData