1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 14:53:53 -05:00

Another solution to zlib error on macOS

Federico Jaramillo Martínez
2018-10-06 20:07:19 -05:00
parent 46f7160e0b
commit fdb6d71fa3

@@ -108,6 +108,11 @@ BUILD FAILED
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install -v 2.7.7
```
* If you installed zlib with Homebrew, you can set the CPPFLAGS environment variable:
```sh
CPPFLAGS="-I/usr/local/opt/zlib/include" pyenv install -v 3.7.0
```
* Alternatively, try reinstalling XCode command line tools for your OS (especially if you just upgraded your OS)
```sh