Install ODOO 12 – MacOS Big Sur


/bin/bash -c “$(curl -fsSL”
brew install python3
brew install freetype jpeg libpng libtiff webp xz

brew install pyenv

brew install zlib
brew install sqlite
brew install bzip2
brew install libiconv
brew install libzip

pyenv install 3.6.0
LDFLAGS=”-L$(brew –prefix zlib)/lib -L$(brew –prefix bzip2)/lib” pyenv install –patch 3.6.12 < <(curl -sSL\?full_index\=1)

ln -s /Users/agink/.pyenv/versions/3.6.12/bin/python3.6 /usr/local/bin/python3.6
ln -s /Users/agink/.pyenv/versions/3.6.12/bin/pip3.6 /usr/local/bin/pip3.6

curl -o
python3.6 -m pip install –upgrade pip
pip3.6 install virtualenv
pip3.6 install setuptools wheel

brew install nvm
nvm install node
npm install -g less

xcode-select —install

mkdir ~/.nvm

vi ~/.zshrc

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

export NVM_DIR=”$HOME/.nvm”
[ -s “/usr/local/opt/nvm/” ] && . “/usr/local/opt/nvm/” # This loads nvm
[ -s “/usr/local/opt/nvm/etc/bash_completion.d/nvm” ] && . “/usr/local/opt/nvm/etc/bash_completion.d/nvm” # This loads nvm bash_completion

closed your terminal & reopen terminal

Install PostgreSQL
Download :

1. Download ➜ Move to Applications folder ➜ Double Click

If you don’t move to the Applications folder, you will see a warning about an unidentified developer and won’t be able to open it.

2. Click “Initialize” to create a new server

Configure your $PATH to use the included command line tools (optional):

3. sudo mkdir -p /etc/paths.d &&
echo /Applications/ | sudo tee /etc/paths.d/postgresapp

Done! You now have a PostgreSQL server running on your Mac with these default settings:

Host localhost
Port 5432
User your system user name
Database same as user
Password none
Connection URL postgresql://localhost

mkdir conf
python3.6 odoo-bin -sc conf/odoo.conf

Install ODOO

tar -xzvf odoo_12.0.latest.tar.xz
mv src odoo_v12

python3.6 -m venv .env
source .env/bin/activate
CFLAGS=”-Wno-error=implicit-function-declaration” pip3.6 install reportlab
pip3.6 install -r requirements.txt
python3.6 install

psql postgres

psql (13.2)
Type “help” for help.

postgres=# \du
List of roles
Role name | Attributes | Member of
agink | Superuser, Create role, Create DB | {}
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}

postgres=# create role odoo12 with login password ‘odoo_v12_pass’;
postgres=# alter role odoo12 createdb;
postgres=# quit

vi conf/odoo.conf

addons_path = /Users/agink/_ODOO_/odoo_v12/addons, /Users/agink/_ODOO_/odoo_v12/odoo/addons
::: edit database :::
db_host = False
db_maxconn = 64
db_name = False
db_password = False
db_port = False
db_sslmode = prefer
db_template = template0
db_user = odoo12
http_enable = True
http_interface =
http_port = 8012

Running ODOO
1. Open & Start PostgreSQL service
2. source .env/bin/activate
3. python3.6 odoo-bin -sc conf/odoo.conf