From fdb6d71fa3ec99a5f79e6d26a36227edf583ec8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Federico=20Jaramillo=20Mart=C3=ADnez?= Date: Sat, 6 Oct 2018 20:07:19 -0500 Subject: [PATCH] Another solution to zlib error on macOS --- Common-build-problems.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Common-build-problems.md b/Common-build-problems.md index 9e134a4..72e429f 100644 --- a/Common-build-problems.md +++ b/Common-build-problems.md @@ -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