Odoo is the most popular all-in-one business software in the world. To Install Odoo on MAC you just need to follow the below steps.
Open terminal by pressing 'command+space' buttons and type "terminal" and then press enter
Install xcode-select using following command:
xcode-select --install
Open brew.sh on browser, you will find the command below 'Install Homebrew" keyword
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
copy, paste and run it on terminal
After installing Homebrew, you will get two more command at the end of installation as below:
run the following 2 commands on terminal to install brew
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/<Mac user>/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"
you can run command 'brew search python'
To install python, run the following command:
brew install [email protected]
To set python path, run the following command:
echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
Grab the Odoo source code, go to Odoo github on browser
install git by following command:
brew install git
go in Odoo repository for community edition Select the version you want You can see green button 'Code', click on it to find the link in order to clone the Odoo code
git clone https:github.com/odoo/odoo.git --depth1 cd odoo
to navigate to Odoo Source code
Get Free Installation Support
there is requirement.txt file in Odoo directory, To have a look where you can find the library version to be installed and the different packages
install pip3 and To check the pip3 version run the following command:
brew install pip3 pip3 --version
pip3 install setuptools wheel
To install PostgreSQL run below command
brew install postgresql
Now, install openssl using below command:
brew install openssl
To fix the error of psycopg2 we will run binary version of the psycopg2, run following command:
pip3 install psycopg2-binary --no-cache-dir
pip3 install -r requirement.txt
brew install jpeg
brew install jpeg--turbo
pip3 install requirement.txt
To start the service of the Odoo run the following command:
brew services restart postgresql
To create a user, login with posgres, run
psql postgres
You can create postgres user from the posgres terminal:
create user <username>
Create database using below command:
createdb db15
\q for exit
python3 odoo-bin -d db15 -i base
You will find your Odoo service has been started. If you find error for 'current limit exceeds maximum limit'
python3 odoo-bin -d db15 --limit-memory-hard 0
To reinitialize the database run the below command
python3 odoo-bin -d db15 -i base --limit-memory-hard 0