= Bitacora de instalacion del servidor TRAC en Slackware 10.X = == Ubicaciones de archivos == * Apache 2.0.54: /usr/local/apache2 [[BR]] (Tambien funciona con XAMPP 1.5 + XAMPP Devel 1.5, pero sin soporte Berkeley DB) [[BR]] * PostgreSQL: /usr/local/pgsql == Reemplazar Python 2.4.1 por Python 2.3.5 == Eliminar paquete Python 2.4.1 (En caso de que se esta la version actualmente instalada) [[BR]] En mi caso, con el paquete Python 2.4.1 de Slackware 10.1 el mod_python genera errores de compilacion... {{{ removepkg python-2.4.1-i486-1 }}} === Instalar Python 2.3.5 === Descargar de: http://www.python.org/ {{{ tar xvjf Python-2.3.5.tar.bz2 cd Python-2.3.5 ./configure make make install ldconfig }}} == Reinstalar apache con soporte para Berkeley DB en caso de usar repositorios BDB == {{{ cd directorio_de_los_fuente_del_apache make clean ./configure ........ --with-dbm=db42 make make install }}} == Instalar mod_python == Descargar de: http://www.modpython.org/ {{{ tar xvzf mod_python-3.1.4.tgz cd mod_python-3.1.4 ./configure --with-apxs=/usr/local/apache2/bin/apxs make make install }}} Modificar el archivo de conf. de apache (/usr/local/apache2/conf/http.conf) agregando la siguiente lineas: {{{ LoadModule python_module modules/mod_python.so }}} == Instalar SWIG (Necesario para enlazar subversion a otros lenguajes) == Descargar de: http://www.swig.org/ {{{ tar xvzf swig-1.3.27.tar.gz cd swig-1.3.27 ./configure make make install }}} == Instalar Subversion con los bindings a Python == Descargar de: http://subversion.tigris.org/ {{{ tar xvzf subversion-1.2.3.tar.gz cd subversion-1.2.3 ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-swig --enable-swig-bindings=python \ --with-apr=/usr/local/apache2/bin/apr-config --with-apr-util=/usr/local/apache2/bin/apu-config }}} Es necesario modificar el archivo /usr/local/apache2/lib/apr.h de apache (2.0.54) para evitar un mensaje de error, hay que reemplazar la linea 393 con: {{{ #define APR_PATH_MAX 1024 }}} {{{ make make install make swig-py make install-swig-py }}} == Instalar ClearSilver (Sistema de templates) == Descargar de: http://www.clearsilver.net/ {{{ cd clearsilver-0.9.14 ./configure --with-python=/usr/local/bin/python make make install }}} == A partir de aqui, paquetes opcionales == == Instalar PyPgSQL (Necesario para el soporte PostgreSQL) == Descargar de: http://pypgsql.sourceforge.net/ {{{ tar xvzf psycopg-1.1.21.tar.gz cd psycopg-1.1.21 }}} Cambiar dentro de setup.py la linea: {{{ USE_CUSTOM = 0 }}} por esta linea: {{{ USE_CUSTOM = 1 }}} y agregar luego de la linea: {{{ if USE_CUSTOM: }}} las siguientes lineas: {{{ include_dirs = ["/usr/local/pgsql/include"] library_dirs = ["/usr/local/pgsql/lib"] }}} Luego ejecutar: {{{ python setup.py build python setup.py install }}} == Instalar !SetupTools (Necesaria para agregar paquetes a TRAC) == Descargar de: http://peak.telecommunity.com/DevCenter/setuptools {{{ python ez_setup.py }}} == Instalar Docutils (Necesario para formatear el Wiki) == Descargar de: http://docutils.sourceforge.net/ {{{ tar xvzf docutils-0.3.9.tar.gz cd docutils-0.3.9 python setup.py install }}} == Instalar SilverCity (Necesario para resaltar la sintaxis del codigo) == Descargar de: http://silvercity.sourceforge.net/ {{{ tar xvzf SilverCity-0.9.5.tar.gz cd SilverCity-0.9.5 python setup.py build python setup.py install }}} == Instalacion de TRAC propiamente dicha == Descargar de: http://projects.edgewall.com/trac/ ;-) {{{ tar xvzf trac-0.9.tar.gz cd trac-0.9 python ./setup.py install }}} Agregar la variable de entorno $PYTHONPATH: {{{ export PYTHONPATH=/usr/local/lib/svn-python }}} ( Agregar el comando en el script de inicio del servidor Apache )