Install OpenERP 7.0 on Ubuntu 14.04 LTS, a step by step guide to install OpenERP from source


Update apt source list

sudo apt-get update

install required packages for openerp

sudo apt-get install graphviz ghostscript postgresql-client \
python-dateutil python-feedparser python-matplotlib \
python-ldap python-libxslt1 python-lxml python-mako \
python-openid python-psycopg2 python-pybabel python-pychart \
python-pydot python-pyparsing python-reportlab python-simplejson \
python-tz python-vatnumber python-vobject python-webdav \
python-werkzeug python-xlwt python-yaml python-imaging

install some other packages that we will probably need in future

sudo apt-get install gcc python-dev mc bzr python-setuptools python-babel \
python-feedparser python-reportlab-accel python-zsi python-openssl \
python-egenix-mxdatetime python-jinja2 python-unittest2 python-mock \
python-docutils lptools make python-psutil python-paramiko poppler-utils \
python-pdftools antiword postgresql

install gdata client (since ubuntu package is old we download and install from source)

tar zxvf gdata-2.0.17.tar.gz
cd gdata-2.0.17/
sudo python install

create a new openerp system user for openerp and other related processes

sudo adduser openerp --home /opt/openerp

Create database user for openerp

createuser --createdb --username postgres –no-createrole --pwprompt openerp

move to the install directory

sudo su openerp
mkdir /opt/openerp/v7
cd /opt/openerp/v7

download the latest revision from launchpad
cd /opt/openerp
tar zxvf openerp-7.0-latest.tar.gz
sudo cp -R openerp-7.0-latest/* /opt/openerp/v7

Copy OpenERP configuration file to /etc
sudo cp /opt/openerp/v7/install/openerp-server.conf /etc/openerp-server.conf

Edit the configuration file
sudo nano /etc/openerp-server.conf

Write your database operation password and remove the semicolon of that line. Also add the addons_path to the end of file, my file looks like below.

; This is the password that allows database operations:
admin_passwd = PASSWORD
db_host = False
db_port = False
db_user = openerp
db_password = False
addons_path = /opt/openerp/v7/openerp/addons

Change the file permissions and file ownership to the openerp user.

sudo chown openerp: /etc/openerp-server.conf
sudo chmod 640 /etc/openerp-server.conf

Run the server

sudo su openerp
cd /opt/openerp/v7/server/

You Might Also Like

2 commentaires

  1. You have to fix some error in your command lines, there are some missing and extra character.

  2. Bonjour
    Je cherche désespérément à installer une version 6 ou 7 d'openerp pour utiliser une base et un scenario avec mes élèves mais je ne trouve plus ni la version 6 ni la 7. Pour info j'itulise la version 12, 14 ou 16 d'ubuntu server, virtualisée sur virtualBox. Peux-tu m'aider ?
    Merci d'avance


Popular Posts

Formulaire de contact


E-mail *

Message *