Skip to content

Instantly share code, notes, and snippets.

@bobisme
Created May 15, 2014 07:22
Show Gist options
  • Save bobisme/79d916b4ab75e15871b0 to your computer and use it in GitHub Desktop.
Save bobisme/79d916b4ab75e15871b0 to your computer and use it in GitHub Desktop.
Installing OpenERP in Linux virtualenv (Ubuntu 14.04)

Installing OpenERP on Ubuntu 14.04

Many steps taken from code.zoia.org.

Install dependencies

apt-get

apt-get install postgresql-server-dev-9.3 python-dev

Install LDAP dependencies:

apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev

libxml and libxslt:

apt-get install libxml2-dev libxslt-dev

Install bzr for launchpad for OpenERP

apt-get install bzr

pip

pip install --allow-unverified PIL --allow-external PIL \
    python-dateutil feedparser gdata \
    python-ldap lxml mako python-openid \
    psycopg2 Babel reportlab simplejson \
    pytz vatnumber vobject python_webdav \
    Werkzeug pyparsing==1.5.7 pydot \
    PyYAML xlwt PIL

ZSI failed to install and was recommended to be dropped

I ran into errors and learned that you can use download caching with pip so you can run the same command.

pip install --download-cache /path/to/pip/cache matplotlib

manual

pychart

pip install http://download.gna.org/pychart/PyChart-1.39.tar.gz

or

wget http://download.gna.org/pychart/PyChart-1.39.tar.gz
tar xvfz PyChart-1.39.tar.gz
python setup.py build
python setup.py install

OpenERP

Download OpenERP v7 server, addons and web addons from the development trunk of the OpenERP Project Group this takes a lot of ram:

bzr branch lp:~openerp/openobject-server/7.0 server && \
bzr branch lp:~openerp/openobject-addons/7.0 addons && \
bzr branch lp:openerp-web/7.0 web

Maybe a better way is to just get the nightly tarball.

Install the rest:

cd server
python setup.py install

Postgresql

Create user.

sudo -u postgres createuser openerp
sudo -u postgres createdb -O openerp openerp

Set the password.

Change from peer auth to md5.

sudo vim /etc/postgresql/9.3/main/pg_hba.conf

add the line:

local   all             openerp                                 md5

config file

Start the server

./openerp-server -s

Kill it. Edit config file.

vim ~/.openerp_serverrc

...

addons_path = <path to addons repo>, <path to web repo>/addons
db_name = openerp
db_password = <password>
db_user = openerp
@johanovic
Copy link

Nice nice! One change:

 sudo -u postgres createuser --pwprompt openerp

@johanovic
Copy link

Oh and just for your info: this did not work. OpenERP keeps on complaining not have the base or docutils modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment