Bonjour,
Je suis bénévole dans une association dans laquelle je m'occupe du parc
informatique. Je dois installer tinyERP sur une machine ubuntu.
J'ai trouvé sur le net les indications d'installations suivantes mais
rencontre un pb dans la dernière étape.
J'ai mis en REMARQUE des commentaires sur les étapes
2.1.9 Ubuntu
1.Modify the /etc/apt/source.lists
(using a text editor like gedit, kate or nano
(in this example gedit is used -
if you don`t have it - just replace gedit with the name of your programm
of choice))
sudo gedit /etc/apt/sources.list
(then you`ll be asked to enter the root password)
- Uncomment these two lines or add it if it does not exist:
deb http://fr.archive.ubuntu.com/ubuntu breezy universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu breezy universe
multiverse
- Save the file and launch the apt command
REMARQUE : je n'ai pas brezy mais dapper; j'ai donc fait la même chose
mais avec dapper.
2.Update the repository by typing
$sudo apt-get update
in command lines or GUI (ubuntu 5.10)
>System>administration>synaptic package manager
(if you`re using kubutu or other ubuntu-based distributions you may have
another package manager (like adept for kubuntu)
3.Install the required packages and postgresql database by typing (in
command line)
$sudo apt-get install python2.4-xml python2.4-libxml2
python2.4-libxslt1 python2.4-psycopg python2.4-imaging
python2.4-pyparsing python2.4-reportlab graphviz postgresql-7.4
or with a GUI /package manager (Synaptic/Adept) (ubuntu 5.10)
select the following packages from the list and choose install
python2.4-xml
python2.4-libxml2
python2.4-libxslt1
python2.4-psycopg
python2.4-imaging
python2.4-pyparsing
python2.4-reportlab
graphviz
postgresql-7.4
then commit the changes
Normally at this step the required packages are installed and the
postgresql server is launched. You will now go to the STEP 4.1 (You are
now in 2.1.9.4 to configure your Postgresql database.)
REMARQUE : il m'a annoncé que
postgresql-7.4
était une vieille version. Je l'ai désinstallé complétement et ai choisi
dans le synaptic la verrsion 8.1
5.Download the Tinyerp Server Package.
6.Decompress it (* means: enter the full path here of your download);
$ cd /
$tar xzvf /home/.../tinyerp-server-v...tgz*
$sudo chown -R postgres server
REMARQUE : la commande tar n'a pas marché, il m'a affiché une erreur. Je
suis arrivé à décompresser le fichier dans l'environnement ubuntu sur
mon bureau. J'ai ensuite copié le répertoire obtenu dans le /.
la commande sudo chown -R postgres server me renvoyait une erreur en me
disant qu'elle ne trouvait pas le fichier ou répertoire server. J'ai
recommencé avec :
sudo chown -R postgres et le nom de mon répertoire décompressé dans /,
il ne m'a alors pas renvoyé d'erreur
7. Start tinyerp server
$sudo su postgres
$cd server
$./bin/tinyerp-server.py -d terp -r postgres -w postgres
REMARQUE : de nouveau, j'ai remplacé "server" par le nom de mon
répertoire tiny et la dernière commande m'a alors lancé tout un bla bla
(copié ci dessous) finissant par :
Wed, 10 Jan 2007 18:48:39 INFO:web-services:the server is running,
waiting for connections...
puis plus rien, il reste là et attend...
Que faire ? Ai-je râté une étape ? Pouvez-vous m'aider
Merci !
After shutting down the server, next time you only need to redo step 7
-
Ci dessous, l'ensemble des manips que j'ai faites dans le terminal pour
la fin de l'étape 6 et l'étape 7
[EMAIL PROTECTED]:~$ cd /
[EMAIL PROTECTED]:/$ ls
bindev lib mnt root sys usr
boot etc lost+found opt sbin tinyerp-server-4.0.1 var
cdrom home media proc srv tmp
[EMAIL PROTECTED]:/$ sudo chown -R postgres server
Password:
chown: ne peut accéder `server': Aucun fichier ou répertoire de ce type
[EMAIL PROTECTED]:/$ sudo chown -R postgres tinyerp-server-4.0.1
[EMAIL PROTECTED]:/$ sudo su postgres
[EMAIL PROTECTED]:/$ cd server
bash: cd: server: Aucun fichier ou répertoire de ce type
[EMAIL PROTECTED]:/$ ls
*bindev libmnt root sys usr
boot etc lost+found opt sbin tinyerp-server-4.0.1 var
cdrom home media proc srv tmp
[EMAIL PROTECTED]:/$ cd tinyerp-server-4.0.1/
[EMAIL PROTECTED]:/tinyerp-server-4.0.1$ ./bin/tinyerp-server.py -d
terp -r postgres -w postgres
Wed, 10 Jan 2007 18:48:29 INFO:objects:initialising distributed objects
services
Wed, 10 Jan 2007 18:48:29 INFO:init:connecting to database
Wed, 10 Jan 2007 18:48:29 INFO:init:could not connect to database
'terp'!
Wed, 10 Jan 2007 18:48:32 INFO:init:addon:base:registering classes
Wed, 10 Jan 2007 18:48:3