Edgewall Software

Changes between Initial Version and Version 1 of TracOnSlackwareSpa


Ignore:
Timestamp:
Dec 14, 2005, 2:46:30 AM (18 years ago)
Author:
aretche@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracOnSlackwareSpa

    v1 v1  
     1= Bitacora de instalacion del servidor TRAC en Slackware 10.X =
     2
     3== Ubicaciones de archivos ==
     4
     5* Apache 2.0.54:                /usr/local/apache2  [[BR]]
     6(Tambien funciona con XAMPP 1.5 + XAMPP Devel 1.5, pero sin soporte Berkeley DB) [[BR]]
     7* PostgreSQL:           /usr/local/pgsql
     8
     9
     10== Reemplazar Python 2.4.1 por Python 2.3.5 ==
     11
     12  Eliminar paquete Python 2.4.1 (En caso de que se esta la version actualmente instalada) [[BR]]
     13  En mi caso, con el paquete Python 2.4.1 de Slackware 10.1 el mod_python genera errores de compilacion...
     14
     15{{{
     16        removepkg python-2.4.1-i486-1
     17}}}
     18
     19=== Instalar Python 2.3.5 ===
     20
     21  Descargar de: http://www.python.org/
     22
     23{{{
     24        tar xvjf Python-2.3.5.tar.bz2
     25        cd Python-2.3.5
     26        ./configure
     27        make
     28        make install
     29        ldconfig
     30}}}
     31
     32== Reinstalar apache con soporte para Berkeley DB en caso de usar repositorios BDB ==
     33
     34{{{     
     35        cd directorio_de_los_fuente_del_apache
     36        make clean
     37        ./configure ........   --with-dbm=db42
     38        make
     39        make install
     40}}}
     41
     42== Instalar mod_python ==
     43
     44  Descargar de: http://www.modpython.org/
     45
     46{{{
     47        tar xvzf mod_python-3.1.4.tgz
     48        cd mod_python-3.1.4
     49        ./configure --with-apxs=/usr/local/apache2/bin/apxs
     50        make
     51        make install
     52}}}
     53
     54  Modificar el archivo de conf. de apache (/usr/local/apache2/conf/http.conf) agregando la siguiente lineas:
     55
     56{{{     
     57       LoadModule python_module modules/mod_python.so
     58}}}
     59
     60== Instalar SWIG (Necesario para enlazar subversion a otros lenguajes) ==
     61
     62  Descargar de: http://www.swig.org/
     63
     64{{{
     65        tar xvzf swig-1.3.27.tar.gz
     66        cd swig-1.3.27
     67        ./configure
     68        make
     69        make install
     70}}}
     71
     72== Instalar Subversion con los bindings a Python ==
     73
     74  Descargar de: http://subversion.tigris.org/
     75
     76{{{
     77        tar xvzf subversion-1.2.3.tar.gz
     78        cd subversion-1.2.3
     79        ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-swig --enable-swig-bindings=python \
     80        --with-apr=/usr/local/apache2/bin/apr-config --with-apr-util=/usr/local/apache2/bin/apu-config
     81}}}
     82 
     83  Es necesario modificar el archivo /usr/local/apache2/lib/apr.h de apache (2.0.54) para evitar un mensaje de error,
     84  hay que reemplazar la linea 393 con: {{{ #define APR_PATH_MAX       1024 }}}
     85
     86{{{
     87        make
     88        make swig-py
     89        make install-swig-py
     90}}}
     91
     92== Instalar ClearSilver (Sistema de templates) ==
     93
     94  Descargar de: http://www.clearsilver.net/
     95
     96        cd clearsilver-0.9.14
     97        ./configure --with-python=/usr/local/bin/python
     98        make
     99        make install
     100
     101
     102== A partir de aqui, paquetes opcionales ==
     103
     104
     105== Instalar PyPgSQL (Necesario para el soporte PostgreSQL) ==
     106
     107  Descargar de: http://pypgsql.sourceforge.net/
     108
     109{{{
     110        tar xvzf psycopg-1.1.21.tar.gz
     111        cd psycopg-1.1.21
     112}}}
     113
     114  Cambiar dentro de setup.py
     115
     116     la linea: {{{ USE_CUSTOM = 0 }}}
     117     por esta linea: {{{ USE_CUSTOM = 1 }}}
     118
     119     y agregar luego de la linea:     {{{ if USE_CUSTOM: }}}
     120     las siguientes lineas:
     121{{{
     122        include_dirs = ["/usr/local/pgsql/include"]
     123        library_dirs = ["/usr/local/pgsql/lib"]
     124}}}
     125
     126  Luego ejecutar:
     127
     128{{{
     129     python setup.py build
     130     python setup.py install
     131}}}
     132
     133== Instalar !SetupTools (Necesaria para agregar paquetes a TRAC) ==
     134
     135  Descargar de: http://peak.telecommunity.com/DevCenter/setuptools
     136{{{
     137        python ez_setup.py
     138}}}
     139
     140== Instalar Docutils (Necesario para formatear el Wiki) ==
     141
     142  Descargar de: http://docutils.sourceforge.net/
     143
     144{{{
     145        tar xvzf docutils-0.3.9.tar.gz
     146        cd docutils-0.3.9
     147        python setup.py install
     148}}}
     149
     150== Instalar SilverCity (Necesario para resaltar la sintaxis del codigo) ==
     151
     152  Descargar de: http://silvercity.sourceforge.net/
     153
     154{{{
     155        tar xvzf SilverCity-0.9.5.tar.gz
     156        cd SilverCity-0.9.5
     157        python setup.py build
     158        python setup.py install
     159}}}
     160
     161
     162== Instalacion de TRAC propiamente dicha ==
     163
     164  Descargar de: http://projects.edgewall.com/trac/  ;-)
     165
     166{{{
     167        tar xvzf trac-0.9.tar.gz
     168        cd trac-0.9
     169        python ./setup.py install
     170}}}
     171
     172  Agregar la variable de entorno $PYTHONPATH:
     173
     174{{{     
     175        export PYTHONPATH=/usr/local/lib/svn-python
     176}}}
     177 ( Agregar el comando en el script de inicio del servidor Apache )