30
 Installation OpenBrav o Environnement de Développement

Installation OpenBravo

Embed Size (px)

Citation preview

Page 1: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 1/30

Installation OpenBravo

Environnement de Développement

Page 2: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 2/30

Etapes d’installation Openbravo

Les étapes dont on a suivit sont les suivantes: Installation de l’executable Openbravo

(sous VMWare), installation SGBD (PostgreSQL), installation JDK, Tomcat, Ant,

Apache, Mercurial Clone, Configuration Openbravo

Page 3: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 3/30

SGBD: PostgreSql

• Source:

http://www.postgresql.org/download/ 

• Types de fichiers téléchargés: fichiers binaires

dédiés pour Windows

• Version: 9.1.1

Page 4: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 4/30

Installation PostgreSQL

Page 5: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 5/30

Installation PostgreSQL

Page 6: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 6/30

Installation PostgreSQL

Page 7: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 7/30

Installation PostgreSQL

• Pour faire fonctionner PostgreSQL, on doittélécharger la répertoire uuid du site web:http://winpg.jp/~saito/pg_work/OSSP_win32/ 

• Ajouter cette répertoire au répertoire lib dePostgreSql et relancer l’application a nouveau 

Page 8: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 8/30

PostgreSQL installé -Interface pgAdmin

Page 9: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 9/30

Installation JDK

• Installation du Java SDK sur Microsoft Windows

• Télécharger et installer JDK 1.6 (Sun Java Development Kit version 1.6

(JDK 6.0)) 

• Ajouter la variable d’environnement JAVA_HOME: 

 – My Computer _ Properties  – Choisissez Advanced et puis cliquer sur « Environment Variables ». 

 – Cliquer sur New. Une nouveau boite de dialogue s’ouvrira.

 – Dans l’attribut Variable name, taper  JAVA_HOME .

 – Dans l’attribut Variable value taper le chemin de passe du répertoire

d’installation du JDK. Probablement:C:\Java\jdk1.6.0_<version> 

 – Sélectionner ensuite la variable d’environnement PATH.

 – Dans l’attribut Variable value, taper le chemin de passe de la répertoire

bin  liée au répertoire d’installation du JDK. Probablement:

C:\Java\jdk1.6.0_<version>\bin 

Page 10: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 10/30

Installation JDK – Variables

d’Environnement 

Page 11: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 11/30

Installation Tomcat

• Source: http://tomcat.apache.org/download-

60.cgi 

Page 12: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 12/30

Apache – Page d’acceuil

Taper sur: http://127.0.0.1:8080/ :

Page 13: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 13/30

Installation Tomcat 

• Ajout des variables d’environnement suivantes: 

CATALINA_HOME, CATALINA_BASE et CATALINA_OPTS

Page 14: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 14/30

Téléchargement Apache Ant

• Source:

http://archive.apache.org/dist/ant/binaries/ 

• Version téléchargée: dernière version 1.7.x, la

plus compatible avec OpenBravo

• Autres propriétés: format de téléchargement

« Zip file » avec MD5, algorithme de cryptage

Page 15: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 15/30

Téléchargement Apache Ant

http://archive.apache.org/dist/ant/binaries/ 

Page 16: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 16/30

Apache Server, httpd

Source:http://httpd.apache.org/download.cgi#apache22 

Page 17: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 17/30

Apache Server, httpd

Page 18: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 18/30

Vérification de la réussite de

l’installation

Pour vérifier queApache est installé avec succès , on tape dans le browser:

localhost, et on doit avoir affiché le message « It works ! »

Page 19: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 19/30

Installation Conncector Tomcat-

Apache

• Source: http://tomcat.apache.org/download-

connectors.cgi 

• Installation du fichier: mod_jk.so

• Insertion du fichier mod_jk.so dans la

répertoire « modules » de Apache

• Modification du fichier « httpd.conf »

d’Apache pour déclarer les fichiers relatifs a

mod_jk

Page 20: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 20/30

Installation du source code

Les étapes d’installation du source code sont les

suivantes:

• Installation Mercurial

• Clonage du source code via Mercurial

(presque 600 MB de taille)

Page 21: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 21/30

Définition Mercurial

• Mercurial est un système de gestion de versions permettant en particulier

la gestion de version décentralisée. Il est disponible sur la plupart des

systèmes Unix et Windows. (Outil de Source Code Management SCM)) 

• Mercurial est écrit principalement en Python. Il a été créé pour s'utiliser via

des lignes de commandes. Toutes les commandes commencent par « hg »,

en référence au symbole chimique du mercure. Ses principales

caractéristiques sont, entre autres :

• sa rapidité et sa capacité à gérer les gros projets ;

• son utilisation sans nécessiter un serveur ;

•son fonctionnement complètement distribué ;

• sa robustesse dans la gestion des fichiers ASCII et binaires ;

• sa gestion avancée des branches et des fusions ;

Page 22: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 22/30

Téléchargement Mercurial

• Téléchargement de Mercurial via le site web:

http://mercurial.selenic.com/ 

Page 23: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 23/30

Clonage du source code

• Après installation du Mercurial Client, on accède on“cmd” de Windows pour cloner le source coded’OpenBravo dans notre PC

• On tape:

$ hg clone http://code.openbravo.com/erp/devel/mainOpenbravoERP-3.0MP3

• http://code.openbravo.com/erp/devel/main, étant lechemin relative a la location du source code

• OpenbravoERP-3.0MP3, étant le nom de la répertoiredans laquelle le code va être place sur notre machinelocale

Page 24: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 24/30

Répertoire du code sur le serveur

http://code.openbravo.com/ 

Page 25: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 25/30

Source code sur sourceforge

• http://openbravo.hg.sourceforge.net/hgweb/

openbravo/ 

Page 26: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 26/30

Clonage du source code via Mercurial

Page 27: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 27/30

Clonage du source code via Mercurial

• Site web source: code.openbravo.com

• Taille du source code téléchargé: 579MB

• Répertoire destination a été nommée «

OpenbravoERP-3.OMP3»• Commande clonage:

$ hg clone

http://code.openbravo.com/erp/devel/mainOpenbravoERP-3.0MP3

Page 28: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 28/30

Clonage du source code via Mercurial

Page 29: Installation OpenBravo

5/16/2018 Installation OpenBravo - slidepdf.com

http://slidepdf.com/reader/full/installation-openbravo 29/30

Configuration Openbravo

• Exécuter la commande « ant setup » dans larépertoire d’Openbravo

• Exécuter setup-properties-windows.exe , le

wizard graphique de configuration• Configurer Openbravo.properties et log4j.lcf 

• Dans le cmd, executer la commande « antinstall.source » qui va créer la base de donnees a

partir des fichiers .xml et installer Openbravo

• Accéder Openbravo a partir de http://ip-address/openbravo dans le navigateur web