Changes between Version 358 and Version 359 of TracInstall
- Timestamp:
- Dec 7, 2012, 10:00:03 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracInstall
v358 v359 2 2 #!div style="margin-top: .5em; padding: 0 1em; background-color: #ffd; border:1px outset #ddc; text-align: center" 3 3 4 '''NOTE: the information in this page applies to Trac 1.0, the upcomingversion of Trac. \\4 '''NOTE: the information in this page applies to Trac 1.0, the current version of Trac. \\ 5 5 For installing previous Trac versions, please refer to [[wiki:0.12/TracInstall]] (for Trac 0.12)''' 6 6 }}} … … 11 11 Trac is written in the Python programming language and needs a database, [http://sqlite.org/ SQLite], [http://www.postgresql.org/ PostgreSQL], or [http://mysql.com/ MySQL]. For HTML rendering, Trac uses the [http://genshi.edgewall.org Genshi] templating system. 12 12 13 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.13 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. 14 14 15 15 If you're interested in contributing new translations for other languages or enhance the existing translations, then please have a look at [[trac:TracL10N]]. … … 48 48 SQLite 2.x is no longer supported. 49 49 50 A known bug PySqlite versions 2.5.2-4 prohibits upgrade of trac databases50 A known bug in PySqlite versions 2.5.2-4 prohibits upgrades of Trac databases 51 51 from 0.11.x to 0.12. Please use versions 2.5.5 and newer or 2.5.1 and 52 52 older. See #9434 for more detail. … … 112 112 * [http://docutils.sourceforge.net/ docutils], version >= 0.3.9 113 113 for WikiRestructuredText. 114 * [http://pygments. pocoo.org Pygments] for114 * [http://pygments.org Pygments] for 115 115 [wiki:TracSyntaxColoring syntax highlighting]. 116 116 [http://silvercity.sourceforge.net/ SilverCity] and/or … … 121 121 an internal time zone implementation. 122 122 123 '''Attention''': The various available versions of these dependencies are not necessarily interchang able, so please pay attention to the version numbers above. If you are having trouble getting Trac to work please double-check all the dependencies before asking for help on the [trac:MailingList] or [trac:IrcChannel].123 '''Attention''': The various available versions of these dependencies are not necessarily interchangeable, so please pay attention to the version numbers above. If you are having trouble getting Trac to work please double-check all the dependencies before asking for help on the [trac:MailingList] or [trac:IrcChannel]. 124 124 125 125 Please refer to the documentation of these packages to find out how they are best installed. In addition, most of the [trac:TracInstallPlatforms platform-specific instructions] also describe the installation of the dependencies. Keep in mind however that the information there ''probably concern older versions of Trac than the one you're installing'' (there are even some pages that are still talking about Trac 0.8!). … … 147 147 === Using `pip` 148 148 'pip' is an easy_install replacement that is very useful to quickly install python packages. 149 To get a trac installation up and running in less than 5 minutes:149 To get a Trac installation up and running in less than 5 minutes: 150 150 151 151 Assuming you want to have your entire pip installation in `/opt/user/trac` … … 161 161 }}} 162 162 163 '''This code does no t work anymorein pip 1.1 which dropped the -E option. Can someone update it?'''164 165 Make sure your OS specific headers are available for pip to automatically build PostgreSQL ( libpq-dev) or MySQL (libmysqlclient-dev) bindings.163 '''This code does no longer work in pip 1.1 which dropped the -E option. Can someone update it?''' 164 165 Make sure your OS specific headers are available for pip to automatically build PostgreSQL (`libpq-dev`) or MySQL (`libmysqlclient-dev`) bindings. 166 166 167 167 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`. … … 169 169 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) 170 170 171 Additionally, you can install several trac plugins (listed [http://pypi.python.org/pypi?:action=search&term=trac&submit=search here]) through pip.171 Additionally, you can install several Trac plugins (listed [http://pypi.python.org/pypi?:action=search&term=trac&submit=search here]) through pip. 172 172 173 173 … … 176 176 Of course, using the python-typical setup at the top of the source directory also works. 177 177 178 You can obtain the source for a .tar.gz or .zip file corresponding to a release (e.g. Trac-1.0.tar.gz), or you can get the source directly from the repository (see Trac:SubversionRepository for details).178 You can obtain the source for a .tar.gz or .zip file corresponding to a release (e.g. `Trac-1.0.tar.gz`), or you can get the source directly from the repository (see Trac:SubversionRepository for details). 179 179 180 180 {{{ … … 184 184 ''You'll need root permissions or equivalent for this step.'' 185 185 186 This will byte-compile the python source code and install it as an .egg file or folder in the `site-packages` directory187 of your Python installation. The .egg will also contain all other resources needed by standard Trac, such as htdocs and templates.186 This will byte-compile the Python source code and install it as an .egg file or folder in the `site-packages` directory 187 of your Python installation. The .egg will also contain all other resources needed by standard Trac, such as `htdocs` and `templates`. 188 188 189 189 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. 190 190 191 If you install from source and want to make Trac available in other languages, make sure 191 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): 192 192 {{{ 193 193 $ python ./setup.py install 194 194 }}} 195 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`).195 Alternatively, you can run `bdist_egg` and copy the .egg from `dist/` to the place of your choice, or you can create a Windows installer (`bdist_wininst`). 196 196 197 197 === Advanced Options === … … 202 202 }}} 203 203 204 Also see [http://docs.python.org/ inst/inst.html Installing Python Modules] for detailed information.204 Also see [http://docs.python.org/2/install/index.html Installing Python Modules] for detailed information. 205 205 206 206 Specifically, you might be interested in: … … 208 208 easy_install --prefix=/path/to/installdir 209 209 }}} 210 or, if installing Trac toa Mac OS X system:210 or, if installing Trac on a Mac OS X system: 211 211 {{{ 212 212 easy_install --prefix=/usr/local --install-dir=/Library/Python/2.5/site-packages 213 213 }}} 214 Note: If installing on Mac OS X 10.6 running {{{ easy_install http://svn.edgewall.org/repos/trac/trunk }}} will install into {{{ /usr/local }}} and {{{ /Library/Python/2.6/site-packages }}} by default 214 Note: If installing on Mac OS X 10.6 running {{{ easy_install http://svn.edgewall.org/repos/trac/trunk }}} will install into {{{ /usr/local }}} and {{{ /Library/Python/2.6/site-packages }}} by default. 215 215 216 216 The above will place your `tracd` and `trac-admin` commands into `/usr/local/bin` and will install the Trac libraries and dependencies into `/Library/Python/2.5/site-packages`, which is Apple's preferred location for third-party Python application installations. … … 231 231 For the other [DatabaseBackend database backends] you should plan ahead and already have a database ready to use at this point. 232 232 233 Since 0.12, Trac doesn't ask for a [TracEnvironment#SourceCodeRepository source code repository] anymore when creating an environment. Repositories can be [TracRepositoryAdmin added] afterward , or the version control support can be disabled completely if you don't need it.233 Since 0.12, Trac doesn't ask for a [TracEnvironment#SourceCodeRepository source code repository] anymore when creating an environment. Repositories can be [TracRepositoryAdmin added] afterwards, or the version control support can be disabled completely if you don't need it. 234 234 235 235 Also note that the values you specify here can be changed later by directly editing the [TracIni conf/trac.ini] configuration file. … … 237 237 Finally, make sure the user account under which the web front-end runs will have '''write permissions''' to the environment directory and all the files inside. This will be the case if you run `trac-admin ... initenv` as this user. If not, you should set the correct user afterwards. For example on Linux, with the web server running as user `apache` and group `apache`, enter: 238 238 {{{ 239 #chown -R apache.apache /path/to/myproject239 $ chown -R apache.apache /path/to/myproject 240 240 }}} 241 241 … … 351 351 ==== Setting up the Plugin Cache ==== 352 352 353 Some Python plugins need to be extracted to a cache directory. By default the cache resides in the home directory of the current user. When running Trac on a Web Server as a dedicated user (which is highly recommended) who has no home directory, this might prevent the plugins from starting. To override the cache location you can set the PYTHON_EGG_CACHEenvironment variable. Refer to your server documentation for detailed instructions on how to set environment variables.353 Some Python plugins need to be extracted to a cache directory. By default the cache resides in the home directory of the current user. When running Trac on a Web Server as a dedicated user (which is highly recommended) who has no home directory, this might prevent the plugins from starting. To override the cache location you can set the `PYTHON_EGG_CACHE` environment variable. Refer to your server documentation for detailed instructions on how to set environment variables. 354 354 355 355 == Configuring Authentication == 356 356 357 Trac uses HTTP authentication. You'll need to configure your webserver to request authentication when the `.../login` URL is hit (the virtual path of the "login" button). Trac will automatically pick the REMOTE_USERvariable up after you provide your credentials. Therefore, all user management goes through your web server configuration. Please consult the documentation of your web server for more info.357 Trac uses HTTP authentication. You'll need to configure your webserver to request authentication when the `.../login` URL is hit (the virtual path of the "login" button). Trac will automatically pick the `REMOTE_USER` variable up after you provide your credentials. Therefore, all user management goes through your web server configuration. Please consult the documentation of your web server for more info. 358 358 359 359 The process of adding, removing, and configuring user accounts for authentication depends on the specific way you run Trac. … … 369 369 $ trac-admin /path/to/myproject permission add admin TRAC_ADMIN 370 370 }}} 371 This user will have an "Admin" entry menu that will allow you to admin your trac project.371 This user will have an "Admin" entry menu that will allow you to administrate your Trac project. 372 372 373 373 == Finishing the install