升级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
相关推荐
云知谷41 分钟前
【C++基本功】C++适合做什么,哪些领域适合哪些领域不适合?
c语言·开发语言·c++·人工智能·团队开发
l1t2 小时前
DeepSeek辅助利用搬移底层xml实现快速编辑xlsx文件的python程序
xml·开发语言·python·xlsx
你的人类朋友3 小时前
【Node】认识multer库
前端·javascript·后端
C_Liu_3 小时前
C++:list
开发语言·c++
my rainy days3 小时前
C++:友元
开发语言·c++·算法
小梁努力敲代码3 小时前
java数据结构--List的介绍
java·开发语言·数据结构
云知谷4 小时前
【HTML】网络数据是如何渲染成HTML网页页面显示的
开发语言·网络·计算机网络·html
lang201509284 小时前
Spring Boot 官方文档精解:构建与依赖管理
java·spring boot·后端
lly2024065 小时前
SQL ROUND() 函数详解
开发语言