文章

安装mysql插件(省略安装mysql server)

2018-05-01 | 1 minute read |标签 python odoo |分类 开发

odoo form ubuntu 16.04 install

基本依赖库

sudo apt-get install postgresql postgresql-server-dev-9.5 python-all-dev python-dev python-setuptools libxml2-dev libxslt1-dev libevent-dev libsasl2-dev libldap2-dev pkg-config libtiff5-dev libjpeg8-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev liblcms2-utils libwebp-dev tcl8.6-dev tk8.6-dev python-tk libyaml-dev fontconfig

安装nodejs

Install Less CSS via Node.js and npmPermalink

  1. Download and run the nodejs installation script from nodesource:
sudo curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - 
  1. Now that our repository list is updated install nodejs using apt.
sudo apt install -y nodejs 
  1. Install a newer version of Less via npm, the Node.js package manager.
sudo npm install -g less less-plugin-clean-css

安装wkhtmltox

Install Stable Wkhtmltopdf VersionPermalink

  1. Navigate to a temporary directory:
cd /tmp 
  1. Download the recommended version of wkhtmltopdf for Odoo server. In this example, we use 0.12.1. See the Odoo repository for an up-to-date list of compatible versions:
sudo wget https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb 
  1. Install the package using dpkg:
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb 
  1. To ensure wkhtmltopdf functions properly, copy the binaries to a location in your executable path:
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin sudo cp /usr/local/bin/wkhtmltoimage /usr/bin