Changes between Version 3 and Version 4 of TracInstall
- Timestamp:
- May 19, 2008, 10:20:20 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracInstall
v3 v4 11 11 For the quick install, make sure you have [http://python.org Python-2.5], [http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install easy_install] and SQlite-3.3.4 installed (or above). 12 12 {{{ 13 sudo easy_install Pygments 14 sudo easy_install Genshi 15 sudo easy_install Trac 13 sudo easy_install Trac==0.11b2 16 14 }}} 17 15 … … 25 23 * See instructions in ["TracOnWindows/Python2.5"] 26 24 * [http://peak.telecommunity.com/DevCenter/setuptools setuptools], version >= 0.6 27 * [http://genshi.edgewall.org/wiki/Download Genshi], version >= 0. 3.625 * [http://genshi.edgewall.org/wiki/Download Genshi], version >= 0.4.1 28 26 * You also need a database system and the corresponding python drivers for it. 29 27 The database can be either SQLite, PostgreSQL or ''MySQL (experimental)''. … … 44 42 * [http://initd.org/projects/psycopg2 psycopg2] or [http://pypgsql.sourceforge.net/ pyPgSQL] 45 43 44 '''Warning''': PostgreSQL 8.3 uses a strict type checking mechanism. To use Trac with the 8.3 Version of PostgreSQL, you will need [http://trac.edgewall.org/changeset/6512 trac-0.11] or later. 45 46 46 === For MySQL === 47 47 48 '''Warning''': MySQL support is currently ''still'' experimental. That means it works for some people, but several issues remain, in particular regarding the use of unicode and the key length in the repository cache. See MySqlDb for more detailed information s.48 '''Warning''': MySQL support is currently ''still'' experimental. That means it works for some people, but several issues remain, in particular regarding the use of unicode and the key length in the repository cache. See MySqlDb for more detailed information. 49 49 50 50 * [http://mysql.com/ MySQL], version 4.1 or later … … 66 66 * A CGI-capable web server (see TracCgi), or 67 67 * a [http://www.fastcgi.com/ FastCGI]-capable web server (see TracFastCgi), or 68 * [http://httpd.apache.org/ Apache] with [http://code.google.com/p/modwsgi/ mod_wsgi] (see [wiki:TracModWSGI]) 69 * This should work with Apache 1.3, 2.0 or 2.2 and promises to deliver more performance than using mod_python. A little less mature than mod_python. 68 70 * [http://httpd.apache.org/ Apache] with [http://www.modpython.org/ mod_python 3.1.3+] (see TracModPython) 69 71 * When installing mod_python the development versions of Python and Apache are required (actually the libraries and header files) 70 * [http://httpd.apache.org/ Apache] with [http://code.google.com/p/modwsgi/ mod_wsgi] (see [wiki:TracModWSGI])71 * While mod_wsgi is very new and somewhat experimental, this should work with Apache 1.3, 2.0 or 2.2 and promises to deliver more performance than using mod_python.72 72 73 73 For those stuck with Apache 1.3, it is also possible to get Trac working with [http://www.modpython.org/ mod_python 2.7] (see [wiki:TracModPython2.7 TracModPython2.7]). This guide hasn't been updated since 0.84, so it may or may not work. … … 87 87 One way to install Trac is using `setuptools`. 88 88 With setuptools you can install Trac from the subversion repository; for example, 89 to install release version 0.11 do:89 to install release version 0.11b2 do: 90 90 {{{ 91 easy_install http://svn.edgewall. com/repos/trac/tags/trac-0.1191 easy_install http://svn.edgewall.org/repos/trac/tags/trac-0.11b2 92 92 }}} 93 93 … … 99 99 ''Note: you'll need root permissions or equivalent for this step.'' 100 100 101 This will byte-compile the python source code and install it in the `site-packages` directory 102 of your Python installation. The directories `cgi-bin`, `templates`, `htdocs`, `wiki-default` and `wiki-macros` are all copied to `$prefix/share/trac/`. `conf` and `plugins` stub directories are also created under `$prefix/share/trac/`. 103 On Linux, the default value of `$prefix` is `/usr`, so the installation will be to `/usr/share/trac`, whereas the BSDs use `/usr/local`. Other Unix or Unix-like systems might use a similar prefix or something like `/opt`, please see your system's documentation for details. 101 This will byte-compile the python source code and install it as an .egg file or folder in the `site-packages` directory 102 of your Python installation. The .egg will also contain all other resources needed by standard Trac, such as htdocs and templates. 104 103 105 104 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. … … 118 117 easy_install --prefix=/path/to/installdir 119 118 }}} 119 or, if installing Trac to a Mac OS X system: 120 {{{ 121 easy_install --prefix=/usr/local --install-dir=/Library/Python/2.5/site-packages 122 }}} 123 124 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. 120 125 121 126 == Creating a Project Environment == … … 144 149 }}} 145 150 146 Then, fire up a browser and visit `http://localhost:8000/`. You should get a simple listing of all environments that tracd knows about. Follow the link to the environment you just created, and you should see Trac in action. 151 Then, fire up a browser and visit `http://localhost:8000/`. You should get a simple listing of all environments that tracd knows about. Follow the link to the environment you just created, and you should see Trac in action. If you only plan on managing a single project with trac you can have the standalone server skip the environment list by starting it like this: 152 {{{ 153 $ tracd -s --port 8000 /path/to/myproject 154 }}} 147 155 148 156 149 157 == Running Trac on a Web Server == 150 158 151 Trac provides three options for connecting to a ârealâweb server: [wiki:TracCgi CGI], [wiki:TracFastCgi FastCGI] and [wiki:TracModPython mod_python]. For decent performance, it is recommended that you use either FastCGI or mod_python.159 Trac provides three options for connecting to a "real" web server: [wiki:TracCgi CGI], [wiki:TracFastCgi FastCGI] and [wiki:TracModPython mod_python]. For decent performance, it is recommended that you use either FastCGI or mod_python. 152 160 153 161 If you're not afraid of running development code, you can also try running Trac on [wiki:TracModWSGI mod_wsgi]. This should deliver even better performance than mod_python, but the module is not considered stable just yet. … … 160 168 * TracCgi if you use the CGI or FastCGI methods. 161 169 * TracModPython if you use the mod_python method. 170 171 == Trac 0.11 & SVN on Mac OS X Leopard (10.5) == 172 173 * TracOnLeopardServer 162 174 163 175 == Using Trac == … … 173 185 ---- 174 186 See also: TracGuide, TracCgi, TracFastCgi, TracModPython, [wiki:TracModWSGI], TracUpgrade, TracPermissions 187