Skip to content

Instantly share code, notes, and snippets.

@owalid
Last active February 9, 2022 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owalid/b30d2666fd2081b9a94cfbbfababd95c to your computer and use it in GitHub Desktop.
Save owalid/b30d2666fd2081b9a94cfbbfababd95c to your computer and use it in GitHub Desktop.
pyenv BUILD FAILED OS X 11.6 using python-build macos solution
pyenv install 3.7.3
...
BUILD FAILED (OS X 11.6 using python-build 20180424)
...
CFLAGS="-I$(brew --prefix openssl)/include \
-I$(brew --prefix bzip2)/include \
-I$(brew --prefix readline)/include \
-I$(xcrun --show-sdk-path)/usr/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib \
-L$(brew --prefix readline)/lib \
-L$(brew --prefix zlib)/lib \
-L$(brew --prefix bzip2)/lib" \
pyenv install --patch <PYTHON_VERSION> \
< <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch\?full_index\=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment