macOS mojaveでzlibが見つからない場合の対処法

Kanta Asada
Sep 1, 2018 · 1 min read

参照: https://github.com/Homebrew/homebrew-core/issues/29176#issuecomment-398656987

mojaveにアップグレードしたところ、pyenv install x.x.x で以下のエラーが発生し、解決策を見つけるのが大変だったのでメモ

zipimport.ZipImportError: can’t decompress data; zlib not available

このコマンドで一発で直る。

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

    Kanta Asada

    Written by

    Mobile & Web Developer in Japan.

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade