You need to install python (at least version 2.4).
You also need to install the following python libraries:
- psycopg2
- reportlab
- pychart
- pydot
- mxdatetime
- xml, lxml and libxslt1
- tz (timezone library)
- PIL: Python Imaging Library (required for reportlab)
- vobject: iCalendar and VCards parsing
On Ubuntu, these libraries are available in the following packages:
- python
- python-psycopg2
- python-reportlab
- python-pychart
- python-pydot
- python-egenix-mxdatetime
- python-xml
- python-lxml
- python-libxslt1
- python-tz
- python-imaging
- python-vobject
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-xml python-tz python-pychart \
python-pydot python-lxml python-libxslt1 python-vobject
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.
For Fedora 10 following needed to be installed :
Use yum install moduleName :
- postgresql-python
- libxml2-python
- libxslt-python
- python-imaging
- python-psycopg
- python-reportlab
- graphviz
- python-psycopg2 (PostgreSQL module) is required
- pychart (pychart module) is required
- pydot (pydot module) is required
- python-devel
- python-lxml
You also need to install Pyxml-0.8.4 download from : http://pypi.python.org/pypi/PyXML/0.8.4
To install Pyxml you need to have a gcc compiler on your system.
If you don’t have gcc
yum install gcc
Run the install for the pyxml and restart your system for it to take effect.
For Mandriva 2009 following needs to be installed:
- python
- python-psycopg2
- python-reportlab
- python-egenix-mx-base
- python-dateutil
- python-pyxml python-pytz
- python-pychart
- python-dot
- python-lxml
- python-libxslt
- python-vobject
To install:
urpmi python python-psycopg2 python-reportlab python-egenix-mx-base python-dateutil python-pyxml python-pytz python-pychart python-dot python-lxml python-libxslt python-vobject
The OpenERP server can be downloaded from the OpenERP website’s download page
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
The Open ERP 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.0.4 comes with python 2.6 and the stable version till 5.0.6 is not compatible with python2.6. For the latest stable version above steps are sufficient.
Hence following steps must be performed to install openerp server till 5.0.6 on ubuntu 9.0.4.
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.0.4 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