Install Odoo in Apple Silicon Mac - luigisison/moxylus GitHub Wiki

Install Odoo in Apple Silicon Mac Watch

  • Install Rosetta 2 Ref
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
  • Install Homebrew Ref
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  • Install Python Ref
arch -x86_64 brew install python3
  • Install PostgreSQL
arch -x86_64 brew install postgres #Install
pg_ctl -D /usr/local/var/postgres start #Start server
pg_ctl -D /usr/local/var/postgres status #Check status
  • Create user
sudo su - postgres -c "createuser -s odoo” 2> /dev/null || true
  • Install Python dependencies
arch -x86_64 brew install git python3 python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libpng12-0 libjpeg-dev gdebi -y
  • Install fonts
arch -x86_64 brew install freetype jpeg libpng libtiff webp xz
  • Install Odoo
git clone https://github.com/odoo/odoo.git
  • Install Odoo dependencies
cd odoo
sudo pip3 install setuptools wheel
sudo -H pip3 install -r requirements.txt
  • Run Odoo server
cd odoo
python odoo-bin —addons-path=addons -d FHIR-DEV 
./odoo-bin
  • In browser, display Odoo UI
127.0.0.1:8069/web/database/selector
  • Maintenance
brew update
brew doctor