trac_installation
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | trac_installation [2007/11/18 15:31] (current) – created jtkorb | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | Trac Installation Process for wiki.cs.purdue.edu | ||
+ | Ethan Blanton < | ||
+ | 2007-09-30 | ||
+ | |||
+ | In these instructions, | ||
+ | paths and other configuration information. | ||
+ | of the formats concerned vary, the variables will be used as bare | ||
+ | identifiers; | ||
+ | |||
+ | HOME := your home directory | ||
+ | TRAC_INSTALL_PREFIX := the location where trac and its dependencies | ||
+ | are to be installed; I used ${HOME}/ | ||
+ | TRAC_ENVIRONMENTS | ||
+ | | ||
+ | | ||
+ | CURRENT_ENVIRONMENT := location of the environment we're currently | ||
+ | | ||
+ | | ||
+ | TRAC_URL_PATH | ||
+ | I used / | ||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | 1) Prepare your environment | ||
+ | |||
+ | The following definitions will need to be in your environment, | ||
+ | the build to proceed: | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Make sure they are exported. | ||
+ | |||
+ | |||
+ | 2) Install trac dependencies | ||
+ | |||
+ | * pysqlite2 | ||
+ | |||
+ | I used pysqlite2 2.3.5. | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | * ClearSilver | ||
+ | |||
+ | This is a little bit of a pain in the butt, and the trac people | ||
+ | know it; it will go away for trac 0.11. In the meantime, I | ||
+ | used 0.10.5, and built it more or less following the | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | What I actually used was: | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Edit the rules.mk created by this configure to add ' | ||
+ | to the LDSHARED definition, the INSTALL path to be relative to | ||
+ | | ||
+ | | ||
+ | do not add them at the top/ | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | Now, run ' | ||
+ | does, run 'gmake install' | ||
+ | |||
+ | |||
+ | 3) Install trac itself | ||
+ | |||
+ | I installed 0.10.4. | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | We will also need the trac.cgi from the install directory; I put it | ||
+ | in ${HOME}/ | ||
+ | |||
+ | cp TRAC_INSTALL_PREFIX/ | ||
+ | |||
+ | |||
+ | 4) Create a trac environment | ||
+ | |||
+ | This process creates the trac environment; | ||
+ | than one trac, this is the part you do more than once. Your apache | ||
+ | | ||
+ | be covered here. Run the following: | ||
+ | |||
+ | | ||
+ | mkdir CURRENT_ENVIRONMENT/ | ||
+ | |||
+ | | ||
+ | be hooking your trac to a subversion repository (I am not), you can | ||
+ | leave those questions unchanged. | ||
+ | |||
+ | |||
+ | 5) Configure apache to serve trac | ||
+ | |||
+ | I created a trac.conf in ${HOME}/ | ||
+ | | ||
+ | |||
+ | Alias TRAC_URL_PATH/ | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Order allow,deny | ||
+ | Allow from all | ||
+ | </ | ||
+ | |||
+ | | ||
+ | </ |
trac_installation.txt · Last modified: 2007/11/18 15:31 by jtkorb