升级openssl到3.X版本

下载

https://www.openssl.org/source/old/3.1/

下载之后, 上传到服务器/usr/local/src

执行命令./config --prefix=/usr/local/openssl 这个时候可能会报错, 我的错误是:

bash 复制代码
[root@compute09 openssl-3.1.3]# ./config --prefix=/usr/local/openssl
Can't locate IPC/Cmd.pm in @INC (you may need to install the IPC::Cmd module) (@INC contains: /usr/local/src/openssl-3.1.3/util/perl /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /usr/local/src/openssl-3.1.3/external/perl/Text-Template-1.56/lib) at /usr/local/src/openssl-3.1.3/util/perl/OpenSSL/config.pm line 19.
BEGIN failed--compilation aborted at /usr/local/src/openssl-3.1.3/util/perl/OpenSSL/config.pm line 19.
Compilation failed in require at /usr/local/src/openssl-3.1.3/Configure line 23.
BEGIN failed--compilation aborted at /usr/local/src/openssl-3.1.3/Configure line 23.

报错原因:缺少IPC/Cmd.pm模块

安装IPC/Cmd.pm, 执行一下命令:

bash 复制代码
yum install -y perl-CPAN

然后执行这个命令, 就成功执行了

bash 复制代码
./config --prefix=/usr/local/openssl

接着执行

bash 复制代码
make && make install
相关推荐
星火开发设计15 分钟前
枚举类 enum class:强类型枚举的优势
linux·开发语言·c++·学习·算法·知识
VX:Fegn08955 小时前
计算机毕业设计|基于ssm + vue超市管理系统(源码+数据库+文档)
前端·数据库·vue.js·spring boot·后端·课程设计
喜欢吃燃面5 小时前
Linux:环境变量
linux·开发语言·学习
徐徐同学6 小时前
cpolar为IT-Tools 解锁公网访问,远程开发再也不卡壳
java·开发语言·分布式
LawrenceLan6 小时前
Flutter 零基础入门(二十六):StatefulWidget 与状态更新 setState
开发语言·前端·flutter·dart
m0_748229996 小时前
Laravel8.X核心功能全解析
开发语言·数据库·php
qq_192779876 小时前
C++模块化编程指南
开发语言·c++·算法
代码村新手7 小时前
C++-String
开发语言·c++
qq_401700417 小时前
Qt 中文乱码的根源:QString::fromLocal8Bit 和 fromUtf8 区别在哪?
开发语言·qt