How to install odoo v10 on a macOS (High Siera)

first things first cd in to a dicrectory where you want to install odoo and it’s env

1
$ cd <folder where you want odoo and odoo env to be>

Next step

1
2
$ curl -O https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py

You may need to run python get-pip.py as sudo.
Next make a env directory and install virtualenv.

1
2
$ mkdir env
$ sudo -H pip install virtualenv

Next setup python environment.

1
$ virtualenv env/odoo_v10_env

Make odoo_v10 folder

1
$ mkdir odoo_v10

Clone Odoo from their github in odoo_v10 folder

1
$ git clone --depth 1 https://github.com/odoo/odoo.git -b 10.0 ./odoo_v10

Install requrements

1
$ ./env/odoo_v10_env/bin/pip install -r ./odoo_v10/requirements.txt

If you haven’t already go ahead and instal Homebrew

1
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install postgresql

1
$ brew install postgresql

After it finishes, start the services

1
$ brew services start postgresql

Install nodeJS/npm and node-less

1
$ brew install node

After node is installed, install node-less (might need to run as sudo)

1
$ npm install less -g

If you want to have PDF reports install wkhtmltopdf
download link: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.2.1/wkhtmltox-0.12.2.1_osx-cocoa-x86-64.pkg

And we are done. Now let’s check if we have everything installed properly.

1
$ psql -V

Should print out psql version.

1
$ lessc --version

Should print out less version.

1
$ wkhtmltopdf -V

Should print out wkhtmltopdf version.

Now that we have everything setup we can run the server and start using odoo.

1
$ ./env/odoo_v10_env/bin/python ./odoo_v10/odoo-bin

And head over to

1
http://localhost:8069/

And that’s it we are done. Now setup a database and get on with odoo.

TIP
If sometimes odoo-bin complains that postgresql is not running but you know it’s running, run these comands:

1
$ rm /usr/local/var/postgres/postmaster.pid && brew services stop postgresql && brew services start postgresql

Have fun coding.

Share