Wiki Navigation


Page History

Version Time Author IP#
16 (diff) 10/08/04 aperus 127.0.0.1
15 (diff) 10/01/04 aperus 127.0.0.1
14 (diff) 09/27/04 aperus 127.0.0.1
13 (diff) 09/23/04 Antoine 127.0.0.1
12 (diff) 09/22/04 Antoine 127.0.0.1
11 (diff) 09/21/04 Antoine 127.0.0.1
10 (diff) 09/21/04 Antoine 127.0.0.1
9 (diff) 09/18/04 Antoine 127.0.0.1
8 (diff) 09/17/04 Antoine 127.0.0.1
7 (diff) 09/17/04 Antoine 127.0.0.1
6 (diff) 09/17/04 perus@lal.in2p3.fr 127.0.0.1
5 (diff) 06/17/04 aperus 127.0.0.1
4 (diff) 05/29/04 Antoine 127.0.0.1
3 (diff) 05/29/04 Antoine 127.0.0.1
2 (diff) 05/27/04 Antoine 127.0.0.1
1 (diff) 05/27/04 Antoine 127.0.0.1

Requirements

Les différents packages installés pour Trac :

avec fink :

hors fink :

État des évolutions (au 08/10/04) :

  • python 2.3.4 (versions python)
  • svn et svn-swig-py23 1.0.8 (fink list svn)
  • sqlite 2.8.13 (fink list sqlite)
  • PySQLite 1.0
  • Clearsilver 0.9.12

Installation de PySQLite

Pas de problème particulier, après avoir modifié setup.py :

<    if sys.platform == "darwin":
<       LOCALBASE = os.environ.get("LOCALBASE", "/usr/local")
---
>    if sys.platform == "darwin":
>        LOCALBASE = os.environ.get("LOCALBASE", "/sw")
 $ python ./setup.py --help
 $ python ./setup.py --help-commands

 $ sudo python ./setup.py build
 $ sudo python ./setup.py install

Les tests et les exemples semblent fonctionner.

Installation de Clearsilver

What is Clearsilver?

Clearsilver is a fast, powerful, and language-neutral HTML template system. In both static content sites and dynamic HTML applications, it provides a separation between presentation code and application logic which makes working with your project easier.

Quelques problèmes :

J'ai du éditer scripts/documents.py pour corriger le path python en tête du script (/sw/bin/python)

sudo vi clearsilver-0.9.12/scripts/document.py
 $ sudo ./configure --prefix=/sw/ --with-python=/sw/bin/python --with-ruby=/sw/bin/ruby
 $ sudo make install

Il reste un certain nombre d'erreurs (?), la dernière interrompant l'installation, ou tout du moins, sa finalisation; elle semble correspondre à la commande (j'ai mis le log général dans mes_logs/build.log) :

  local/clearsilver/ruby> aperus% sudo ruby install.rb setup
  install.rb: entering setup phase...
  ---> lib
  <--- lib
  ---> ext
  ---> ext/hdf
  make
  make: *** No targets specified and no makefile found.  Stop.
  setup failed
  'system make' failed
  try 'ruby install.rb --help' for usage

Ne semble pas gêner outre mesure clearsilver et trac … mais très curieusement, je n'ai eu aucune erreur en reconstruisant sur le serveur mac-91111.lal.in2p3.fr ??

Installation de Trac

$ cd /sw/local/trac-0.7.1
$ python ./setup.py --help
$ python ./setup.py --help-commands
$ sudo python ./setup.py install --prefix /sw

Le code python est alors compilé et installé dans /sw. Les répertoires cgi-bin, templates, htdocs and wiki-default sont tous recopiés dans /sw/share/trac/ .

Est également installé l'outil trac-admin de création et de gestion des environnements de projet. Trac-admin est le centre de commande de Trac.

Création d'un Environment de Projet

C'est là que Trac met l'ensemble de l'information : pages wiki, tickets, rapports, définitions, etc. Ce répertoire contient une base de données SQLite, un fichier de configuration textuel, les fichiers log et les fichiers attachés.

$ trac-admin /Users/aperus/Sites/Trac initenv

trac-admin pose quelques questions pendant l'initialisation; mes réponses :

 ...
 Please enter the name of your project.
 This name will be used in page titles and descriptions.

Project Name [My Project]> Ma Doc

 Please specify the absolute path to the project Subversion repository.
 Repository must be local, and trac-admin requires read+write
 permission to initialize the Trac database.

Path to repository [/var/svn/test]> /Users/Shared/SVN

 Please enter location of Trac page templates.
 Default is the location of the site-wide templatesinstalled with Trac.

Templates directory [/sw/share/trac/templates]> 
 ...

Note: Le serveur web doit avoir les droits en écriture sur ce répertoire et les fichiers inclus.

$ chmod -R o+w /Users/aperus/Sites/Trac

Configuration du serveur Apache

Le détail de la configuration Apache est

Migration de CVS à SVN

Avec le script python cvs2svn

 $ cvs2svn --username=aperus --encoding=utf8 -s /Users/Shared/SVN /Users/Shared/CVS
 $ sudo chmod -R o+w SVN

Vérifications :

 $ svnlook info /Users/Shared/SVN
 $ svnlook tree /Users/Shared/SVN
 $ svnlook tree /Users/Shared/SVN /trunk/Developpements

Using Trac

On accède à l'installation à l'URI :

http://127.0.0.1/cgi-bin/trac.cgi

Et ça marche … !


Voir également : TracGuide, TracPermissions, TracOnOsx