OpenERP Server Installation

Installing the required packages

You need to install Python (at least version 2.4 for OpenERP 5.0, 2.5 for OpenERP 6.0).

You also need to install the following python libraries:

  • psycopg2

  • reportlab

  • pychart

  • pydot

  • mxdatetime

  • lxml (libxml2 and libxslt are not required anymore since 5.0.7)

  • pytz (timezone library)

  • PIL: Python Imaging Library (required for reportlab)

  • vobject: iCalendar and VCards parsing

  • PyYaml (only needed as of 6.0, can be added via easy_install)

Example on Ubuntu

On Ubuntu, these libraries are available in the following packages:

  • python

  • python-psycopg2

  • python-reportlab

  • python-pychart

  • python-pydot

  • python-egenix-mxdatetime

  • python-lxml

  • python-tz

  • python-imaging

  • python-vobject

  • python-setuptools (to provide easy_install for installing PyYaml)

To install the required libraries, you can do the following in your favorite shell:

sudo apt-get install python python-psycopg2 python-reportlab \
     python-egenix-mxdatetime python-tz python-pychart \
     python-pydot python-lxml python-vobject python-setuptools

sudo easy_install PyYaml

Note

There is no need to explicitly install python-imaging since it's required by python-reportlab. The apt-get utility will install all these packages with their required dependencies.

Example on Fedora

For Fedora 10, the following needed to be installed using yum install <moduleName> :

  • postgresql-python

  • python-imaging

  • python-psycopg

  • python-reportlab

  • graphviz

  • python-psycopg2 (PostgreSQL module)

  • pychart (pychart module)

  • pydot (pydot module)

  • python-devel

  • python-lxml (libxml2 and libxslt are not required anymore as of v5.0.7)

  • python-setuptools (to provide easy_install for installing PyYaml)

To install:

yum install python python-psycopg2 python-reportlab python-egenix-mx-base python-dateutil python-pytz python-pychart python-dot python-lxml python-vobject python-setuptools

sudo easy_install PyYaml

Example on CentOS

Based on the installation for Fedora. But with the version 5.4 of this distribution, we have seen some bugs with the version of reportlab. So in this case, you must install the reportlab package with easy_install from the python-setuptools package.

Example on Mandriva

For Mandriva 2009 following needs to be installed:

  • python

  • python-psycopg2

  • python-reportlab

  • python-egenix-mx-base

  • python-dateutil

  • python-pytz

  • python-pychart

  • python-dot

  • python-lxml (libxml2 and libxslt are not required anymore as of v5.0.7)

  • python-vobject

  • python-setuptools (to provide easy_install for installing PyYaml)

To install:

urpmi python python-psycopg2 python-reportlab python-egenix-mx-base python-dateutil python-pytz python-pychart python-dot python-lxml python-vobject python-setuptools

sudo easy_install PyYaml

Downloading the OpenERP Server

The OpenERP server can be downloaded from the OpenERP website's download page

Testing the OpenERP Server

Note

If you only want to test the server, you do not need to install it. Just unpack the archive and start the openerp-server executable:

tar -xzf openerp-server-5.0.0.tar.gz
cd openerp-server-5.0.0/bin
python openerp-server.py

The list of available command line parameters can be obtained with the -h command line switch:

python openerp-server.py -h

Installing the OpenERP Server

The OpenERP Server can be installed very easily using the setup.py file:

tar -xzf openerp-server-5.0.0.tar.gz
cd openerp-server-5.0.0
sudo python setup.py install

If your PostgreSQL server is up and running, you can now run the server using the following command:

openerp-server

If you don't already have a PostgreSQL server up and running, you can read the PostgreSQL Server installation and configuration.

Ubuntu 9.04 comes with python 2.6 and the stable version until 5.0.6 is not compatible with python 2.6. For the latest stable version the above steps are sufficient.

Hence following steps must be performed to install openerp server till 5.0.6 on ubuntu 9.04.

Python 2.5 setting up:

$ sudo apt-get install python2.5 python2.5-dev python-profiler

Reinstall python-xml:

$ wget http://freefr.dl.sourceforge.net/sourceforge/pyxml/PyXML-0.8.4.tar.gz

$ tar xvzf PyXML-0.8.4.tar.gz

$ cd PyXML-0.8.4/

$ sudo python2.5 setup.py install

Make the following symbolic link:

$ sudo ln -s /usr/lib/python2.6/dist-packages/oldxml/_xmlplus/utils/boolean.so /usr/lib/python2.5/site-packages/oldxml/_xmlplus/utils/

Force openerp-server to be launched with Python2.5:

$ cd /usr/bin/

$ sudo cp openerp-server openerp-server.ORIG

$ sudo vi openerp-server

Replace the following line:

exec /usr/bin/python ./openerp-server.py $@

with

exec /usr/bin/python2.5 ./openerp-server.py $@

We can now restart openerp-server:

$ sudo /etc/init.d/openerp-server restart

Restarting openerp-server: openerp-server.

Check out the logs:

$ sudo cat /var/log/openerp.log

[2009-06-14 21:06:39,314] INFO:server:version – 5.0.0

[2009-06-14 21:06:39,314] INFO:server:addons_path – /usr/lib/openerp-server/addons

[2009-06-14 21:06:39,314] INFO:server:database hostname – localhost

[2009-06-14 21:06:39,315] INFO:server:database port – 5432

[2009-06-14 21:06:39,315] INFO:server:database user – openerp

[2009-06-14 21:06:39,315] INFO:objects:initialising distributed objects services

[2009-06-14 21:06:39,502] INFO:web-services:starting XML-RPC services, port 8069

[2009-06-14 21:06:39,502] INFO:web-services:starting NET-RPC service, port 8070

[2009-06-14 21:06:39,502] INFO:web-services:the server is running, waiting for connections…

OpenERP is now up and running, connected to Postgres database on port 5432 and listening on ports 8069 and 8070

After installation of the server the config file is stored at /usr/share/doc/openerp-server-5.0.0/openerp-server.conf in Ubuntu 8.10 in case of Ubuntu 9.04 config file is at /etc/openerp-server.conf which looks like

[options]
without_demo = True
; This is the password that allows database operations:
; admin_passwd = admin
upgrade = False
verbose = False
netrpc = True
xmlrpc = True
port = 8069
interface =
db_host = False
db_port = False
; Please uncomment the following line *after* you have created the
; database. It activates the auto module check on startup.
; db_name = terp
db_user = openerp
db_password = False
; Uncomment these for xml-rpc over SSL
; secure = True
; secure_cert_file = /etc/openerp/server.cert
; secure_pkey_file = /etc/openerp/server.key
root_path = None
soap = False
translate_modules = ['all']
demo = {}
addons_path = None
reportgz = False