How to do it...

To install Odoo from source, you need to follow these steps:

  1. Run the following commands to install the main dependencies:
$ sudo apt-get update$ sudo apt-get install -y git python3.5 postgresql nano virtualenv \ xz-utils wget fontconfig libfreetype6 libx11-6 libxext6 libxrender1 \ node-less node-clean-css xfonts-75dpi
  1. Download and install wkhtmltopdf:
$ wget -O wkhtmltox.tar.xz \ https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz $ tar xvf wkhtmltox.tar.xz$ sudo mv wkhtmltox/lib/* /usr/local/lib/$ sudo mv wkhtmltox/bin/* /usr/local/bin/$ sudo mv wkhtmltox/share/man/man1 /usr/local/share/man/
  1. Now, use this to install the build dependencies:
$ sudo apt-get install ...

Get Odoo 11 Development Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.