下载
https://www.openssl.org/source/old/3.1/
下载之后, 上传到服务器/usr/local/src
执行命令./config --prefix=/usr/local/openssl 这个时候可能会报错, 我的错误是:
[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, 执行一下命令:
yum install -y perl-CPAN
然后执行这个命令, 就成功执行了文章来源:https://www.toymoban.com/news/detail-797588.html
./config --prefix=/usr/local/openssl
接着执行文章来源地址https://www.toymoban.com/news/detail-797588.html
make && make install
到了这里,关于升级openssl到3.X版本的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!