编译python3.7+openssl 1.1.1+的时候遇到问题X509_VERIFY_PARAM_set1_host()
报错如下
Failed to build these modules:
_hashlib _ssl
Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381
编译的命令
./configure --with-ensurepip=yes --prefix=/soft/python/3.9.0 --with-openssl=/soft/openssl/1.1.1k
请问如何解决?
查询了网上关于CPPFLAGS="-I/xxxxx/include" LDFLAGS="-L/xxxxxx/lib" 这些都不行!
Failed to build these modules:
_hashlib _ssl
Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381
编译的命令
./configure --with-ensurepip=yes --prefix=/soft/python/3.9.0 --with-openssl=/soft/openssl/1.1.1k
请问如何解决?
查询了网上关于CPPFLAGS="-I/xxxxx/include" LDFLAGS="-L/xxxxxx/lib" 这些都不行!
发布于:6个月前 (08-21) IP属地:北京市
1 个回答
满意答案

export LD_RUN_PATH=/soft/openssl/1.1.1k/lib
先设置这个环境变量,然后再编译即可!~
先设置这个环境变量,然后再编译即可!~
发布于:6个月前 (08-21) IP属地:未知
我来回答
您需要 登录 后回答此问题!