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:
./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.