You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.3 KiB

5 years ago
  1. # Install odoo on linux
  2. > Tested on Ubuntu 18
  3. ##### 2) Install Python, postgresql and needed modules
  4. Python 2.7 and 3 come pre-installed but you'll need to add pip
  5. ```
  6. sudo apt-get install python-pip
  7. sudo apt-get install postgresql
  8. sudo apt-get install libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libssl-dev -y
  9. sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
  10. ```
  11. ##### 4) install less compiler
  12. ```
  13. $ sudo apt-get install npm
  14. $ sudo npm install -g less less-plugin-clean-css
  15. ```
  16. ##### 5) setup odoo environment
  17. I recommend using [virtualenvwrapper](http://virtualenvwrapper.readthedocs.io/en/latest/index.html)
  18. ```
  19. $ mkvirtualenv odoo -p /path/to/python2.7 # generally /usr/bin/python2.7
  20. $ which python # should return:
  21. /Users/<user>/.virtualenvs/odoo/bin/python
  22. ```
  23. Use `deactivate` to get out of odoo environment, use `workon odoo` to activate the environment.
  24. ##### 6) clone odoo
  25. ```
  26. $ cd ~/projects
  27. $ git clone https://github.com/odoo/odoo.git odoo
  28. ```
  29. ##### 7) Install odoo requirements
  30. ```
  31. $ cd odoo
  32. $ git checkout 9.0
  33. $ pip install -r requirements.txt
  34. # we need to upgrade psycopg2
  35. pip uninstall psycopg2
  36. pip install --no-binary :all: psycopg2
  37. ```
  38. You should now be able to start a simple odoo instance with `./odoo/odoo.py`