How can I compile Python 3.6.2 on macOS with openSSL from homebrew?

前端 未结 4 1918
余生分开走
余生分开走 2020-12-31 20:25

I\'m trying to compile Python 3.6.2 on macOS 10.11 according to the instructions on https://bugs.python.org/issue29095.

I\'ve used homebrew to install openSSL to the

4条回答
  •  执念已碎
    2020-12-31 20:42

    I had success like this.

      brew update
      brew install openssl
    
      # these were suggested by brew itself.
    
      export LDFLAGS="-L/usr/local/opt/openssl/lib"
      export CPPFLAGS="-I/usr/local/opt/openssl/include"
      export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
    
      # vanilla compilation
    
      ./configure
      make
    

提交回复
热议问题