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
- Python 2.7
On Linux systems, it is included by default.
- 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"
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)
- 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
- Go to setup folder of the extracted folder of odoo and copy the odoo file
- Paste it in the same folder and rename it to odoo-bin
- Cut and paste the odoo-bin to the odoo home folder
- Right click on it and give executable permission
- From a terminal, you can run the odoo server by:
- Open any browser and type the following address
and you will be connected to the Odoo Server.