CentOS8 安装openssl时 报错: Getopt/Long.pm
在CentOS8上安装OpenSSL时报下面的错误:
Operating system: x86_64-whatever-linux2
Configuring OpenSSL version 1.1.1h (0x1010108fL) for linux-x86_64
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile
Can't locate Getopt/Long.pm in @INC (you may need to install the Getopt::Long module) (@INC contains: . /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at configdata.pm line 15514.
BEGIN failed--compilation aborted at configdata.pm line 15514.
Compilation failed in require.
BEGIN failed--compilation aborted.
解决办法:
yum install -y perl-Getopt-Long*
安装完成后再安装openssl就可以了。