Home > Tech Crunch > Howto run OpenERP 4.2.3’s latest stable version on Ubuntu

Howto run OpenERP 4.2.3’s latest stable version on Ubuntu

Following a little bit on my previous article on how to install OpenERP 4.2.0 on Ubuntu, this is an article on how to install the stable branch (but latest development version of this branch) of OpenERP, in version 4.2.3.

The Launchpad project for OpenERP is here: https://code.launchpad.net/~openerp

So basically, downloading OpenERP 4.2.3 is done, at the time of writing these lines, like this:

$> mkdir ~/openerp/stable/4.2 -p
$> cd ~/openerp/stable/4.2
$> bzr clone lp:~openerp/openobject-server/4.2 server
$> bzr clone lp:~openerp/openobject-client/4.2 client
$> bzr clone lp:~openerp/openobject-addons/4.2 addons
$> cd server/bin/addons
$> ln -s ../../../addons/* .

These are the dependencies you might want to check on your system before trying to run the system (for both the client and the server):

sudo apt-get install python python-egenix-mxdatetime python-xml python-lxml python libxml2 python-libxslt1 python-psycopg python-pydot graphviz python-pyparsing python-imaging python-reportlab python-gtk2 python-matplotlib

Starting the server can then be done like this:

cd ..
./tinyerp-server.py –database=ywarnier –db_port=5433

The port might be a problem (trying to connect to port 5432 if PostgreSQL is actually running on port 5432) depending on the version of PostgreSQL you use, and its configuration, so we’re using the port on the command line here.

Starting the client (from a second terminal) is done by getting into the client/bin directory and executing


If all goes well, you should be able to start using it straight away.

Downloading the web client is done this way:

$> bzr clone lp:~openerp/openobject-client-web/4.2 client-web

You will probably need python-pkg-resources and python-turbogears

$> sudo apt-get install python-pkg-resources python-setuptools python-kid

$> sudo apt-get install python-turbogears

I am splitting these two lines because apparently installing python-turbogears directly causes a failure in the package configuration sequence.

To start the web client, just get into the client-web/ directory and launch

$> sudo ./start-tinyerp.py

If you still have your server running over there, this should do the trick.

  1. November 11, 2008 at 11:42 am

    some probs with your installation guide!

    ln -s ../../../addons/*
    a symbolic link … but it doesn`t put the files from the “Addons” direction to the right path…the right path is of course server/bin/addons….After putting the Files to the “right path” the addons were initiated.
    The first time with ” $> ./tinyerp-server.py –init=module “.

    There is a little bug in the openerp files. I solve it with the following lines:
    $ cd ~/openerp/stable/4.2/client-web/
    $ sudo cp -r tinyerp tinyer

    you see right just tinyer not tinyerp. maybe you could although rename it.

    Bye, and thank you for the instructions.


  2. November 11, 2008 at 11:54 am

    I forget something.
    Maybe it is helpful for nu user.

    The part with postgres is missing.

    $ sudo apt-get install postgresql-8.3
    $ sudo su postgres
    $ createuser -U postgres –createdb –no-adduser -P terp
    $ createdb -U postgres -O terp –encoding=UNICODE terp …….. (UTF-8 doesn`t work??? )
    $ exit

    activate user for the postgres group!!!!

    This with your instruction is everything you have to do for starting OpenERP with ubuntu.

    Last but not least.

    Starting the Server:
    $ sudo su postgres
    $ cd openerp/stable/4.2/server/bin
    $ ./tinyerp-server.py –init=module –db_port=5432 –addons-path=../../addons –d terp –r postgres –w postgres

    Starting the Client:
    $ cd ~/openerp/stable/4.2/client/bin
    $ ./tinyerp-client.py

    Starting the Web Client:
    $ cd ~/openerp/stable/4.2/client-web/
    $ sudo ./start-tinyerp.py

    then…: http://localhost:8080/menu

    Stopping the Server:
    Just „Strg“ + „c“


  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: