Changes between Version 2 and Version 3 of TracInstall
- Timestamp:
- 08/22/11 13:23:41 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracInstall
v2 v3 1 {{{ 2 #!div style="margin-top: .5em; padding: 0 1em; background-color: #ffd; border:1px outset #ddc;" 3 4 '''NOTE: this page is for 0.12dev (trunk), the version currently in development. For installing previous Trac versions, please refer to [[0.11/TracInstall]]''' 5 }}} 6 = Trac Installation Guide for 0.12dev = 1 = Trac Installation Guide for 0.12 = 7 2 [[TracGuideToc]] 8 3 … … 11 6 Since version 0.12, Trac can also be localized, and there's probably a translation available for your language. If you want to be able to use the Trac interface in other languages, then make sure you have installed the optional package [#OtherPythonPackages Babel]. Pay attention to the extra steps for localization support in the [#InstallingTrac Installing Trac] section below. Lacking Babel, you will only get the default english version, as usual. 12 7 13 If you're interested in contributing new translations for other languages or enhance the existing translations, then please have a look at [ "TracL10N"].8 If you're interested in contributing new translations for other languages or enhance the existing translations, then please have a look at [[trac:TracL10N]]. 14 9 15 10 What follows are generic instructions for installing and setting up Trac and its requirements. While you may find instructions for installing Trac on specific systems at TracInstallPlatforms on the main Trac site, please be sure to '''first read through these general instructions''' to get a good understanding of the tasks involved. … … 95 90 * an [http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html AJP]-capable web 96 91 server (see [trac:TracOnWindowsIisAjp TracOnWindowsIisAjp]) 97 * ACGI-capable web server (see TracCgi), '''but usage of Trac as a cgi script98 is highly discouraged''', better use one of the following options,92 * a CGI-capable web server (see TracCgi), '''but usage of Trac as a cgi script 93 is highly discouraged''', better use one of the previous options. 99 94 100 95 … … 126 121 A few examples: 127 122 128 - install Trac 0.12 beta1::123 - install Trac 0.12: 129 124 {{{ 130 easy_install Trac==0.12 b1125 easy_install Trac==0.12 131 126 }}} 132 127 133 - install latest development version 0.12dev 128 - install latest development version 0.12dev: 134 129 {{{ 135 130 easy_install Trac==dev … … 138 133 either use a released version or install from source 139 134 135 === Using `pip` 136 'pip' is an easy_install replacement that is very useful to quickly install python packages. 137 To get a trac installation up and running in less than 5 minutes: 138 139 Assuming you want to have your entire pip installation in /opt/user/trac 140 141 - 142 {{{ 143 pip -E /opt/user/trac install trac psycopg2 144 }}} 145 or 146 - 147 {{{ 148 pip -E /opt/user/trac install trac mysql-python 149 }}} 150 151 Make sure your OS specific headers are available for pip to automatically build PostgreSQL (libpq-dev) or MySQL (libmysqlclient-dev) bindings. 152 153 pip will automatically resolve all dependencies (like Genshi, pygments, etc.) and download the latest packages on pypi.python.org and create a self contained installation in /opt/user/trac 154 155 All commands (tracd, trac-admin) are available in /opt/user/trac/bin . This can also be leveraged for mod_python (using PythonHandler directive) and mod_wsgi (using WSGIDaemonProcess directive) 156 157 Additionally, you can install several trac plugins (listed [http://pypi.python.org/pypi?:action=search&term=trac&submit=search here]) through pip. 158 159 160 140 161 === From source 141 162 Of course, using the python-typical setup at the top of the source directory also works. 142 163 143 You can obtain the source for a .tar.gz or .zip file corresponding to a release (e.g. Trac-0.12 b1.tar.gz), or you can get the source directly from the repository (see Trac:SubversionRepository for details).164 You can obtain the source for a .tar.gz or .zip file corresponding to a release (e.g. Trac-0.12.tar.gz), or you can get the source directly from the repository (see Trac:SubversionRepository for details). 144 165 145 166 {{{ … … 154 175 The script will also install the [wiki:TracAdmin trac-admin] command-line tool, used to create and maintain [wiki:TracEnvironment project environments], as well as the [wiki:TracStandalone tracd] standalone server. 155 176 156 If you install from source and want to make Trac available in other languages, make sure you have installed Babel and then run this additional step before doing the `install` (or simply redo the `install` afterwards): 157 {{{ 158 $ python ./setup.py compile_catalog -f 159 }}} 160 (the `-f` flag is needed as long as some translations are marked ''fuzzy'', i.e. incomplete, which will most probably be the case during the whole development period, as strings are continuously added or modified) 161 177 If you install from source and want to make Trac available in other languages, make sure Babel is installed. Only then, perform the `install` (or simply redo the `install` once again afterwards if you realize Babel was not yet installed): 178 {{{ 179 $ python ./setup.py install 180 }}} 181 Alternatively, you can do a `bdist_egg` and copy the .egg from dist/ to the place of your choice, or you can create a Windows installer (`bdist_wininst`). 162 182 163 183 === Advanced Options ===