Installing Odoo 10 from Source
posted to Python on 13 February 2017
Apparently installing odoo 10 from source require additional command to make sure odoo installation running smooth. Before execute command
$ pip install -r requirements.txt
Ensure to run these command to prevent error
Install python header files required to build extension
$ sudo apt-get install python-dev
Install pillow dependencies
$ sudo apt-get install libjpeg-dev libfreetype6-dev zlib1g-dev
Install lxml dependencies
$ sudo apt-get install libxml2-dev libxslt-dev
Install python-ldap dependencies
$ sudo apt-get install libsasl2-dev libldap2-dev libssl-dev
Some users may skipping less
installation instruction from odoo installation tutorial which caused error
Could not execute command lessc
To fix these error follow these steps
$ sudo apt-get install nodejs
$ sudo apt-get install npm
$ sudo npm install -g less
$ sudo npm install -g less-plugin-clean-css
$ sudo ln -s /usr/local/bin/lessc /usr/bin/lessc
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
After the fix you have 3 options to do:
- Delete and create new database
- Install a module (e.g blog, website)
- Manually compile your
.less
files