Recent Updates
Loading...
Monday 18 June 2018

Installing Odoo 10 in Ubuntu: Source Install

6/18/2018 02:01:00 pm

Installing Odoo 10 in Ubuntu: Source Install


The source "installation" really is about not installing Odoo and running it directly from source instead.

Before we proceed, download the latest Odoo v10 from Odoo Nightly builds

Installing Dependencies

  1. Python 2.7

    On Linux systems, it is included by default.
  2. PostgreSQL
    • sudo apt-get install postgresql
    • After installing PostgreSQL, create a postgres user with the system username(login name)

      sudo su - postgres -c "createuser -s $USER"
  3. Installing Python dependencies listed in the requirements.txt file of Odoo

    Before installing the python dependencies we need to install the following: libxml2, libxslt, libevent, libsasl2 and libldap2. Run the following commands to install them.

    sudo apt-get install libxml2-dev

    sudo apt-get install libxslt-dev

    sudo apt-get install libevent-dev

    sudo apt-get install libsasl2-dev

    sudo apt-get install libldap2-dev

    Now install the python dependencies in the requirements.txt file by running the following command(Note: Extract the Odoo v10 downloaded and change the terminal path to the extracted folder)
    • sudo pip install -r requirements.txt
      (If pip is not installed, install it by running the following command: sudo apt-get install python-pip)
  4. Installing Less CSS via nodejs 
    • In Ubuntu 13.10 and before you need to install nodejs manually:
      • wget -qO- https://deb.nodesource.com/setup | bash -
      • sudo apt-get install -y nodejs
    • In Ubuntu (>14.04) you may need to add a symlink as npm packages call node but debian calls the binary nodejs
      • sudo apt-get install -y npm
      • sudo ln -s /usr/bin/nodejs /usr/bin/node
    • Once npm is installed, use it to install less:

      sudo npm install -g less
  5. Running Odoo
    1. Go to setup folder of the extracted folder of odoo and copy the odoo file
    2. Paste it in the same folder and rename it to odoo-bin
    3. Cut and paste the odoo-bin to the odoo home folder
    4. Right click on it and give executable permission
    5. From a terminal, you can run the odoo server by:

      ./odoo-bin
    6. Open any browser and type the following address
      localhost:8069
      and you will be connected to the Odoo Server.






Credits: https://www.odoo.com/documentation/10.0/setup/install.html#source-install

0 comments:

Post a Comment

 
Toggle Footer