The official installation guide is provided here : http://doc.openerp.com/v6.0/install/linux/
I wanted to install it from source on a basic ubuntu 11.04 machine.
Once more, an incomplete (or not up to date) documentation.
What a time spent by all those users who are looking to make it work, if they were contributing that time to something more usefull... what a wonderfull world would it be...
"I love clear and ready-to-copy-paste documentations !!!"
First thing to know : openerp 6 needs python 2.6 and not python 2.5 since the io module needed by dateutils isn't provided in python 2.5.
Context
Ubuntu server 11.04
Using the root account for convenience.
Database
(install postgress and add openerp user)
apt-get install postgresql
su postgres
createuser --createdb --username postgres --no-createrole --pwprompt openerp
Server installation
Installing dependencies
apt-get install python-lxml python-mako python-egenix-mxdatetime python-dateutil python-psycopg2 python-pychart
apt-get install python-pydot python-tz python-reportlab python-yaml python-vobject
Let's add python-setuptools :
apt-get install python-setuptools
Download
wget http://www.openerp.com/download/stable/source/openerp-server-6.0.2.tar.gz
tar -zxf openerp-server-6.0.2.tar.gz
Install, add a specific user and launch the server
cd openerp-server*
python setup.py install
adduser openerp
su openerp
openerp-server
Client installation
Open a new prompt since the server is already logging in the first one.
Dependencies (here python-xml is replaced with python-lxml)
apt-get install python-gtk2 python-glade2 python-matplotlib python-egenix-mxdatetime python-lxml python-tz
apt-get install python-hippocanvas python-pydot
Download and install
wget http://www.openerp.com/download/stable/source/openerp-client-6.0.2.tar.gz
tar -zxvf openerp-client-6.0.2.tar.gz
cd openerp-client*
python setup.py install
Add symlinks
You have to detect where your client has been installed. I like to use updatedb and locate commands to retrieve the good path. Finally you should get something like this :
/usr/local/lib/python2.7/dist-packages/openerp_client-6.0.2-py2.7.egg/
We have to add symlinks to make our client startup :
mkdir -p /usr/share/pixmaps/
ln -s /usr/local/lib/python2.7/dist-packages/openerp_client-6.0.2-py2.7.egg/share/openerp-client /usr/share/
ln -s /usr/local/lib/python2.7/dist-packages/openerp_client-6.0.2-py2.7.egg/share/pixmaps/openerp-client /usr/share/pixmaps/
openerp-client script
Now we have to correct openerp-client script to let it work:
vim /usr/local/bin/openerp-client
:2,2s/openerp-client/openerp_client-6.0.2-py2.7.egg\/openerp-client/c
:wq
NB : The two last commands are vim specific.
Launch
Now we are ready to launch our client :
openerp-client
Aaah !! Let's learn how it works, that will take much more time, but it will be usefull spent time ... or not ... "what does it meen?" ... no matter ... it's not intended to become a philosophical blog.
No comments:
Post a Comment