Closed thoongnv closed 4 years ago
It seemed that sudo-pythonz didn't preserve those env vars
It seems work now, here is my config I put in ~/.zshrc
# openssl
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
# zlib
export LDFLAGS="${LDFLAGS} -L/usr/local/opt/zlib/lib"
export CPPFLAGS="${CPPFLAGS} -I/usr/local/opt/zlib/include"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH} /usr/local/opt/zlib/lib/pkgconfig"
export CPATH=`xcrun --show-sdk-path`/usr/include
I got an issue with zlib when install 3.6.10 with this command:
sudo-pythonz install 3.6.10
(also failed with 3.6.8, 3.6.9)But it worked with
sudo-pythonz install 3.7.10
So I think zlib is not a issue, because I already config in .zshrc