Am getting this error when trying to configure a source code build for OpenSSL
# ./config –prefix=/usr/local/openssl-3.4
Can’t locate IPC/Cmd.pm in @INC (you may need to install the IPC::Cmd module) (@INC contains: /tmp/openssl-3.4.0/util/perl /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /tmp/openssl-3.4.0/external/perl/Text-Template-1.56/lib) at /tmp/openssl-3.4.0/util/perl/OpenSSL/config.pm line 19.
BEGIN failed–compilation aborted at /tmp/openssl-3.4.0/util/perl/OpenSSL/config.pm line 19.
Compilation failed in require at /tmp/openssl-3.4.0/Configure line 23.
BEGIN failed–compilation aborted at /tmp/openssl-3.4.0/Configure line 23.
The error indicates that the `IPC::Cmd` Perl module is missing.
You can resolve this by installing the required module.
Here are the steps to do so:
1. Install the `IPC::Cmd` Module:
sudo yum install perl-IPC-Cmd
2. Verify the Installation:
Ensure that the module is installed correctly:
perl -MIPC::Cmd -e ‘print “IPC::Cmd module is installed\n”‘
3. Retry the Configuration:
After installing the module, try configuring the build again:
cd /tmp/openssl-3.4.0
./config –prefix=/usr/local/openssl-3.4
This should resolve the error.