The following build error occurred when I build Python 2.7.11.
ERROR: The Python zlib extension was not compiled. Missing the zlib?
My Build environment is:
You should check here: https://github.com/yyuu/pyenv/wiki/Common-build-problems. Try to reinstall your command line tools.