升级openssl到3.X版本

下载
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

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

./config --prefix=/usr/local/openssl

接着执行

make && make install

你可能感兴趣的:(scala,开发语言,后端)