Changes between Version 14 and Version 15 of faq/setup-trac


Ignore:
Timestamp:
Mar 25, 2013, 12:31:59 AM (11 years ago)
Author:
Ross
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/setup-trac

    v14 v15  
    3838
    3939'''Note:''' If you want to install a newer version of trac, you can work with what you find on this [http://blog.mornati.net/2011/09/06/install-trac-0-12-in-shared-host/ blog].  We should have a more definitive write up about how to do this specifically for our servers (coming soon?).
     40
     41== Install Different Trac Version and Trac Plugins ==
     42
     43'''Note:''' The below instructions were found on [http://blog.mornati.net/2011/09/06/install-trac-0-12-in-shared-host/ this blog]. 
     44
     45Once logged into your server issue the following command to create the necessary directories:
     46
     47{{{
     48mkdir -p ~/.local/lib/python2.6/site-packages
     49}}}
     50
     51''Next install Genshi:'''
     52
     53{{{
     54easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Genshi
     55}}}
     56
     57Example output:
     58
     59{{{
     600 rosstrac@buffy:~$ easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Genshi
     61install_dir /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/
     62Searching for Genshi
     63Best match: Genshi 0.6
     64Adding Genshi 0.6 to easy-install.pth file
     65
     66Using /usr/lib/pymodules/python2.6
     67Processing dependencies for Genshi
     68Finished processing dependencies for Genshi
     690 rosstrac@buffy:~$
     70}}}
     71
     72'''Next install Babel:'''
     73{{{
     74easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Babel
     75}}}
     76
     77Example output:
     78
     79{{{
     800 rosstrac@buffy:~$ easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Babel
     81install_dir /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/
     82Searching for Babel
     83Reading http://pypi.python.org/simple/Babel/
     84Reading http://babel.edgewall.org/
     85Reading http://babel.edgewall.org/wiki/Download
     86Best match: Babel 0.9.6
     87Downloading http://pypi.python.org/packages/2.6/B/Babel/Babel-0.9.6-py2.6.egg#md5=e66698fb97c8dc0a7c6b7b86c91d62be
     88Processing Babel-0.9.6-py2.6.egg
     89creating /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/Babel-0.9.6-py2.6.egg
     90Extracting Babel-0.9.6-py2.6.egg to /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages
     91Adding Babel 0.9.6 to easy-install.pth file
     92Installing pybabel script to /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/
     93
     94Installed /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/Babel-0.9.6-py2.6.egg
     95Processing dependencies for Babel
     96Finished processing dependencies for Babel
     970 rosstrac@buffy:~$
     98}}}
     99
     100'''Finally install Trac==VERSION_NUMBER'''
     101
     102{{{
     103easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Trac==1.0
     104}}}
     105
     106Example output:
     107
     108{{{
     1090 rosstrac@buffy:~$ easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Trac==1.0
     110install_dir /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/
     111Searching for Trac==1.0
     112Reading http://pypi.python.org/simple/Trac/
     113Reading http://trac.edgewall.org/
     114Reading http://trac.edgewall.org/wiki/TracDownload
     115Reading http://trac.edgewall.com/
     116Reading http://projects.edgewall.com/trac
     117Reading http://projects.edgewall.com/trac/wiki/TracDownload
     118Best match: Trac 1.0
     119Downloading http://pypi.python.org/packages/source/T/Trac/Trac-1.0.zip#md5=3dd2e883179879c8fa5b98c984f15058
     120Processing Trac-1.0.zip
     121Running Trac-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-6Ver0k/Trac-1.0/egg-dist-tmp-uX_TB1
     122catalog 'trac/locale/el/LC_MESSAGES/messages.po' is marked as fuzzy, skipping
     123catalog 'trac/locale/hy/LC_MESSAGES/messages.po' is marked as fuzzy, skipping
     124catalog 'trac/locale/pl/LC_MESSAGES/messages.po' is marked as fuzzy, skipping
     125catalog 'trac/locale/tr/LC_MESSAGES/messages.po' is marked as fuzzy, skipping
     126catalog 'trac/locale/ko/LC_MESSAGES/messages.po' is marked as fuzzy, skipping
     127catalog 'trac/locale/fa/LC_MESSAGES/messages.po' is marked as fuzzy, skipping
     128catalog 'trac/locale/vi/LC_MESSAGES/messages.po' is marked as fuzzy, skipping
     129Adding Trac 1.0 to easy-install.pth file
     130Installing trac-admin script to /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/
     131Installing tracd script to /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/
     132
     133Installed /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
     134Processing dependencies for Trac==1.0
     135Finished processing dependencies for Trac==1.0
     1360 rosstrac@buffy:~$
     137}}}
     138
     139Next change your ~/.bashrc file to use the newly downloaded executable.  Add the following line to your .bashrc file:
     140
     141{{{
     142export PATH="$HOME/.local/lib/python2.6/site-packages:$PATH"
     143}}}
     144
     145''Then run:'''
     146
     147{{{
     148source ~/.bashrc
     149}}}
     150
     151'''Now run'''
     152
     153{{{
     154which trac-admin
     155}}}
     156
     157You should see the correct local path to trac-admin.  Now you should be able to follow the steps from earlier:
     158
     159 * Choose a directory to install your trac files (your domain.org/include/ directory is a good option). Replace words in capitals with values that make sense for your site:
     160{{{
     161mkdir /home/members/GROUPNAME/sites/DOMAIN/include/trac
     162mkdir /home/members/GROUPNAME/sites/DOMAIN/include/trac/PROJECTNAME
     163}}}
     164 * Initialize your project (the first question asks for the name of your project, for all other questions, you can safely choose the default values)
     165{{{
     166trac-admin /home/members/GROUPNAME/sites/DOMAIN/include/trac/PROJECTNAME initenv
     167}}}
     168
     169
     170 * Create the trac cgi scripts using the trac deploy
     171{{{
     172trac-admin /home/members/GROUPNAME/sites/DOMAIN/include/trac/PROJECTNAME deploy /home/members/GROUPNAME/sites/DOMAIN/cgi-bin/trac
     173}}}
     174 * Change the mode of the cgi files so that they are executable:
     175{{{
     176chmod 755 /home/members/GROUPNAME/sites/DOMAIN/cgi-bin/trac/cgi-bin/trac.*
     177}}}
     178 * Add an alias to your apache configuration:
     179{{{
     180ScriptAlias /trac /home/members/GROUPNAME/sites/DOMAIN/cgi-bin/trac/cgi-bin/trac.cgi
     181}}}
     182