openssl-3.0.5安装执行 ./config --prefix=/usr/local/ssl -d shared
Can't locate IPC/Cmd.pm in @INC (@INC contains: /root/sshupdate/openssl-3.0.5/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 . /root/sshupdate/openssl-3.0.5/external/perl/Text-Template-1.56/lib) at /root/sshupdate/openssl-3.0.5/util/perl/OpenSSL/config.pm line 18.
BEGIN failed--compilation aborted at /root/sshupdate/openssl-3.0.5/util/perl/OpenSSL/config.pm line 18.
Compilation failed in require at /root/sshupdate/openssl-3.0.5/Configure line 24.
BEGIN failed--compilation aborted at /root/sshupdate/openssl-3.0.5/Configure line 24.
原因:缺少编译环境软件
解决办法:
安装perl-CPAN
yum install -y perl-CPAN
进入CPAN的shell模式,首次进入需要配置shell,按照提示操作即可(默认配置)
perl -MCPAN -e shell
在shell中安装缺少的模块
cpan[1]> install IPC/Cmd.pm
安装成功后,重新编译OpenSSL即可