Edgewall Software

Changes between Version 430 and Version 431 of TracInstall


Ignore:
Timestamp:
Nov 14, 2016, 5:40:19 PM (12 months ago)
Author:
Ryan J Ollos
Comment:

Add command prompts.

Legend:

Unmodified
Added
Removed
Modified
  • TracInstall

    v430 v431  
    141141 -
    142142 {{{#!sh
    143 pip install trac psycopg2
     143$ pip install trac psycopg2
    144144}}}
    145145or
    146146 -
    147147 {{{#!sh
    148 pip install trac mysql-python
     148$ pip install trac mysql-python
    149149}}}
    150150
     
    187187To install Trac to a custom location, or find out about other advanced installation options, run:
    188188{{{#!sh
    189 easy_install --help
     189$ easy_install --help
    190190}}}
    191191
     
    194194Specifically, you might be interested in:
    195195{{{#!sh
    196 easy_install --prefix=/path/to/installdir
     196$ easy_install --prefix=/path/to/installdir
    197197}}}
    198198or, if installing Trac on a Mac OS X system:
    199199{{{#!sh
    200 easy_install --prefix=/usr/local --install-dir=/Library/Python/2.6/site-packages
     200$ easy_install --prefix=/usr/local --install-dir=/Library/Python/2.6/site-packages
    201201}}}
    202202
     
    285285There is, however, a bit of a chicken-and-egg problem. The [TracAdmin trac-admin] command requires an existing environment to function, but complains if the deploy directory already exists. This is a problem, because environments are often stored in a subdirectory of the deploy. The solution is to do something like this:
    286286{{{#!sh
    287 mkdir -p /usr/share/trac/projects/my-project
    288 trac-admin /usr/share/trac/projects/my-project initenv
    289 trac-admin /usr/share/trac/projects/my-project deploy /tmp/deploy
    290 mv /tmp/deploy/* /usr/share/trac
     287$ mkdir -p /usr/share/trac/projects/my-project
     288$ trac-admin /usr/share/trac/projects/my-project initenv
     289$ trac-admin /usr/share/trac/projects/my-project deploy /tmp/deploy
     290$ mv /tmp/deploy/* /usr/share/trac
    291291}}}
    292292Don't forget to check that the web server has the execution right on scripts in the `/usr/share/trac/cgi-bin` directory.