Did you get an error “Can’t locate Module/Load/Conditional.pm” while installing/Upgrading OpenSSL to the latest version?
Here’s the complete error message while compiling OpenCA from source:
Can't locate Module/Load/Conditional.pm in @INC (@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 .././test/run_tests.pl line 20. BEGIN failed--compilation aborted at .././test/run_tests.pl line 20. make[1]: *** [_tests] Error 2 make[1]: Leaving directory `/root/openssl-1.1.0f' make: *** [tests] Error 2
Well, I did get this error on CentOS 6.9 running Perl version 5.10.1. If you ran through the same issue, then here’s a tutorial to solve the same.
How to fix Can’t locate Module/Load/Conditional.pm
As the installation script is not able to locate Module/Load/Conditional.pm, we need to install the same.
Install the perl module Module::Load::Conditional
using yum as follows:
yum install perl-Module-Load-Conditional
or
You can do the same via CPAN:
perl -MCPAN -e 'install Module::Load::Conditional'
That’s it 🙂