Linux安装openssl出现Can‘t locate IPC/Cmd.pm in,error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1

1. 问题描述 Can‘t locate IPC/Cmd.pm in

缺少IPC/Cmd.pm 模块

Can't locate IPC/Cmd.pm in @INC (@INC contains: /opt/common/openssl-3.0.1/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 . /opt/common/openssl-3.0.1/external/perl/Text-Template-1.56/lib) at /opt/common/openssl-3.0.1/util/perl/OpenSSL/config.pm line 18.
BEGIN failed--compilation aborted at /opt/common/openssl-3.0.1/util/perl/OpenSSL/config.pm line 18.
Compilation failed in require at /opt/common/openssl-3.0.1/Configure line 23.
BEGIN failed--compilation aborted at /opt/common/openssl-3.0.1/Configure line 23.

在这里插入图片描述

1. 解决方案

安装perl-CPAN

 yum install -y perl-CPAN

Linux安装openssl出现Can‘t locate IPC/Cmd.pm in,error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1_第1张图片
进入perl shell中

perl -MCPAN -e shell

进入后第一步选yes
第二步选manual
第三步选yes
在这里插入图片描述
出现以下cpan[1]>就可以了
Linux安装openssl出现Can‘t locate IPC/Cmd.pm in,error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1_第2张图片
安装缺少的模块

install IPC/Cmd.pm

Linux安装openssl出现Can‘t locate IPC/Cmd.pm in,error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1_第3张图片

后面就可以等着了,需要等几个小时,有点慢,耐心等待即可

2. 问题描述:OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

解决方案:

yum install openssl-devel -y

你可能感兴趣的:(Linux,perl,linux,开发语言)