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/
需要一条命令

brew link openssl --force

备注

以下是刚安装完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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值