升级openssl后无法使用cmake和curl的解决方法

现象

Linux升级openssl后(笔者的案例是编译源码升级1.1.1f到1.1.1k)无法使用curl,提示libcurl.so无法加载符号SSLv3_*,cmake因为依赖libcurl也无法使用。

原因

新版openssl默认不支持ssl3,需要手动开启。

解决方案

增加enable-ssl3 enable-ssl3-method,重新编译openssl,重新安装。

bash 复制代码
mkdir build
cd build
../config shared enable-ssl3 enable-ssl3-method
make
make install

其它

理论上可以通过升级curl并禁用ssl3解决,但笔者没有尝试。ssl3因为安全性问题正在逐渐淘汰,保留ssl3功能只是为了兼容旧版软件。

---完---

相关推荐
hughnz12 小时前
钻井自动化案例研究
运维·自动化
ILL11IIL12 小时前
Docker容器技术
运维·docker·容器
蜡笔小新..12 小时前
Linux下Matplotlib使用Times New Roman字体的解决方案
linux·运维·matplotlib
飞yu流星12 小时前
文件压缩、文本内容、文本编辑
运维·服务器
洪流之源12 小时前
图像格式转换与内存对齐详解
linux
二宝哥12 小时前
Failed connect to mirrorlist.centos.org:80; Connection refused
linux·运维·centos
humors22113 小时前
一些安全类网站(不定期更新)
linux·网络·windows·安全·黑客·白帽
Kk.080213 小时前
Linux(九)fork复制进程与写时拷贝技术
linux·运维·服务器
一个人旅程~13 小时前
双系统时windows如何读取linux ext4格式硬盘分区?
linux·windows·经验分享·电脑
齐齐大魔王13 小时前
linux-进程详解
linux·运维·服务器