天天看點

OS X EI capitan openssl問題

報錯

ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
           

解決方法是

LDFLAGS:  -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
           

you’ll need to add to your build variables

自帶openssl和brew安裝的openssl

Mac 自帶openssl在/usr/bin

brew裝的openssl在/usr/local/bin/

需要一條指令

備注

以下是剛安裝完openssl時的說明,備注用,感覺是因為新作業系統的沙箱之類的限制的臨時解決方法,感覺而已僅供參考

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include