현상

openssl 3.0 설치 시에 아래와 같은 에러 발생하였다. 

# ./config --prefix=/usr/local --openssldir=/usr/local/openssl
Can't locate IPC/Cmd.pm in @INC (@INC contains: /engn001/installer/openssl-3.0.7/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 . /engn001/installer/openssl-3.0.7/external/perl/Text-Template-1.56/lib) at /engn001/installer/openssl-3.0.7/util/perl/OpenSSL/config.pm line 19.
BEGIN failed--compilation aborted at /engn001/installer/openssl-3.0.7/util/perl/OpenSSL/config.pm line 19.
Compilation failed in require at /engn001/installer/openssl-3.0.7/Configure line 23.
BEGIN failed--compilation aborted at /engn001/installer/openssl-3.0.7/Configure line 23.
 
 

확인

 
config.pm 파일의 19라인 확인 : use IPC::Cmd;
 
...

package OpenSSL::config;

use strict;

use warnings;

use Getopt::Std;

use File::Basename;

use File::Spec;

use IPC::Cmd;   <- 19라인

use POSIX;

use Config;

use Carp;

# These control our behavior.

my $DRYRUN;

my $VERBOSE;

my $WHERE = dirname($0);

my $WAIT = 1;

---
 
 

해결과정

IPC-Cmd 사용 불가한 것으로 보여(설치 안되어 있음) yum으로 설치 진행
 
# yum install perl-IPC-Cmd

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirror.navercorp.com

 * extras: mirror.navercorp.com

 * updates: mirror.navercorp.com

Resolving Dependencies

--> Running transaction check

---> Package perl-IPC-Cmd.noarch 1:0.80-4.el7 will be installed

...
 

결과

# ./config --prefix=/usr/local --openssldir=/usr/local/openssl

Configuring OpenSSL version 3.0.7 for target linux-x86_64

Using os-specific seed configuration

Created configdata.pm

Running configdata.pm

Created Makefile.in

Created Makefile

Created include/openssl/configuration.h

**********************************************************************

***                                                                ***

***   OpenSSL has been successfully configured                     ***

***                                                                ***

***   If you encounter a problem while building, please open an    ***

***   issue on GitHub <https://github.com/openssl/openssl/issues>  ***

***   and include the output from the following command:           ***

***                                                                ***

***       perl configdata.pm --dump                                ***

***                                                                ***

***   (If you are new to OpenSSL, you might want to consult the    ***

***   'Troubleshooting' section in the INSTALL.md file first)      ***

***                                                                ***

**********************************************************************
config 재수행 성공!
 
make 하고 make install 하면 끝!!