karalekas/dotfig

Issues installing python versions through pyenv on macOS mojave

karalekas opened this issue · 1 comments

following the instructions above, I was able to suppress the zlib issue but then started seeing a new OpenSSL issue. came across this issue pyenv/pyenv#1184, and was finally able to get installation to work. thus, the steps were:

  • install headers that are missing in mojave
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
  • set the CONFIGURE_OPTS environment variable
CONFIGURE_OPTS="--with-openssl=$(brew --prefix openssl)" pyenv install 3.7.0

NOTE: I did not set any C compiler or linker flags.