Skip to content

Instantly share code, notes, and snippets.

@emjayoh
Last active February 24, 2021 06:54
Show Gist options
  • Save emjayoh/d9972c71323e7f5600d9314f5c1dc7ba to your computer and use it in GitHub Desktop.
Save emjayoh/d9972c71323e7f5600d9314f5c1dc7ba to your computer and use it in GitHub Desktop.
[Flags pyenv install] fix errors using python/brew #python #libary #bug #cflags #flags
brew uninstall --ignore-dependencies openssl && brew install openssl && CFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" pyenv install 2.7.0
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 3.6.0 < <(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