freebsd7 java_使用ssl在Freebsd 11上安装Python 3.7

我正在尝试使用ssl支持在Freebsd 11.1上安装Python 3.7 .

尝试#1:由于未找到libdl.so.1,预先构建的二进制文件将无法运行

pkg install python37

...

root@s0001:~ # python3.7

Shared object "libdl.so.1" not found, required by "python3.7"

尝试#2:我下载了python 3.7源代码并尝试使用默认值进行构建,但未找到ssl模块

./configure

make

...

Python build finished successfully!

The necessary bits to build these optional modules were not found:

_gdbm _sqlite3 _ssl

_tkinter spwd

To find the necessary bits, look in setup.py in detect_modules() for the module's name.

尝试#3:我注意到python tarball里面有openssl 1.1.1的源代码所以我尝试了--with-openssl,但是遇到了编译错误:

./configure --with-openssl=openssl-1.1.1

make

openssl-1.1.1/include/openssl/bn.h:332:1: error: expected function body after function declarator

DEPRECATEDIN_0_9_8(int

^

openssl-1.1.1/include/openssl/bn.h:403:1: error: expected function body after function declarator

DEPRECATEDIN_0_9_8(int BN_get_params(int which)) /* 0, mul, 1 high, 2 low, 3

^

In file included from /root/Python-3.7.0/Modules/_hashopenssl.c:23:

In file included from openssl-1.1.1/include/openssl/evp.h:28:

In file included from openssl-1.1.1/include/openssl/objects.h:15:

似乎安装Python支持ssl(我认为使用tarball中的openssl)应该是直截了当的 . 这样做的正确方法是什么?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值