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

Mar 24, 2013, 8:31:59 PM (9 years ago)



  • faq/setup-trac

    v14 v15  
    3939'''Note:''' If you want to install a newer version of trac, you can work with what you find on this [ blog].  We should have a more definitive write up about how to do this specifically for our servers (coming soon?).
     41== Install Different Trac Version and Trac Plugins ==
     43'''Note:''' The below instructions were found on [ this blog]. 
     45Once logged into your server issue the following command to create the necessary directories:
     48mkdir -p ~/.local/lib/python2.6/site-packages
     51''Next install Genshi:'''
     54easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Genshi
     57Example output:
     600 rosstrac@buffy:~$ easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Genshi
     61install_dir /home/members/ross/sites/
     62Searching for Genshi
     63Best match: Genshi 0.6
     64Adding Genshi 0.6 to easy-install.pth file
     66Using /usr/lib/pymodules/python2.6
     67Processing dependencies for Genshi
     68Finished processing dependencies for Genshi
     690 rosstrac@buffy:~$
     72'''Next install Babel:'''
     74easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Babel
     77Example output:
     800 rosstrac@buffy:~$ easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Babel
     81install_dir /home/members/ross/sites/
     82Searching for Babel
     86Best match: Babel 0.9.6
     88Processing Babel-0.9.6-py2.6.egg
     89creating /home/members/ross/sites/
     90Extracting Babel-0.9.6-py2.6.egg to /home/members/ross/sites/
     91Adding Babel 0.9.6 to easy-install.pth file
     92Installing pybabel script to /home/members/ross/sites/
     94Installed /home/members/ross/sites/
     95Processing dependencies for Babel
     96Finished processing dependencies for Babel
     970 rosstrac@buffy:~$
     100'''Finally install Trac==VERSION_NUMBER'''
     103easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Trac==1.0
     106Example output:
     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/
     111Searching for Trac==1.0
     118Best match: Trac 1.0
     121Running Trac-1.0/ -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/
     131Installing tracd script to /home/members/ross/sites/
     133Installed /home/members/ross/sites/
     134Processing dependencies for Trac==1.0
     135Finished processing dependencies for Trac==1.0
     1360 rosstrac@buffy:~$
     139Next change your ~/.bashrc file to use the newly downloaded executable.  Add the following line to your .bashrc file:
     142export PATH="$HOME/.local/lib/python2.6/site-packages:$PATH"
     145''Then run:'''
     148source ~/.bashrc
     151'''Now run'''
     154which trac-admin
     157You should see the correct local path to trac-admin.  Now you should be able to follow the steps from earlier:
     159 * Choose a directory to install your trac files (your directory is a good option). Replace words in capitals with values that make sense for your site:
     161mkdir /home/members/GROUPNAME/sites/DOMAIN/include/trac
     162mkdir /home/members/GROUPNAME/sites/DOMAIN/include/trac/PROJECTNAME
     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)
     166trac-admin /home/members/GROUPNAME/sites/DOMAIN/include/trac/PROJECTNAME initenv
     170 * Create the trac cgi scripts using the trac deploy
     172trac-admin /home/members/GROUPNAME/sites/DOMAIN/include/trac/PROJECTNAME deploy /home/members/GROUPNAME/sites/DOMAIN/cgi-bin/trac
     174 * Change the mode of the cgi files so that they are executable:
     176chmod 755 /home/members/GROUPNAME/sites/DOMAIN/cgi-bin/trac/cgi-bin/trac.*
     178 * Add an alias to your apache configuration:
     180ScriptAlias /trac /home/members/GROUPNAME/sites/DOMAIN/cgi-bin/trac/cgi-bin/trac.cgi