How can I install zlib on Mac OS X Mojave (10.14)?

风格不统一 提交于 2019-12-02 22:40:26
geoidesic

https://github.com/pyenv/pyenv/issues/1219

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
Elena Zarubaeva

It helped me as well, answer is here: https://github.com/Homebrew/homebrew-core/issues/29176 More details, this works:

  1. brew update

  2. (Re)Install CLT.

    installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
    
  3. brew reinstall python@2

I needed an extra step to get it running on Mojave 10.14.05, Python 3.7. First:

export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.6/bin"

then

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

see this post.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!