Skip to content

Instantly share code, notes, and snippets.

@os-ia
Last active November 22, 2021 08:54
Show Gist options
  • Save os-ia/b5ddca72e91b0c7b6ab96d7295179965 to your computer and use it in GitHub Desktop.
Save os-ia/b5ddca72e91b0c7b6ab96d7295179965 to your computer and use it in GitHub Desktop.
Fixes for the Odoo installation from source on macOS
# General
xcode-select --install
# 2to3 error; python_version < "3.8"
pip install setuptools <=57.5.0
# Pillow
brew install libjpeg
brew install zlib
export LDFLAGS="-L/usr/local/opt/zlib/lib"
export CFLAGS="-I/usr/local/opt/zlib/include"
# Pyldap
pip install python-ldap \
--global-option=build_ext \
--global-option="-I$(xcrun --show-sdk-path)/usr/include/sasl"
# reportlab
export CFLAGS="-Wno-error=implicit-function-declaration"
# psycopg2
export LDFLAGS="-L/usr/local/Cellar/[email protected]/1.1.1h/lib"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment