Linux installation openssl appears Can't locate IPC/Cmd.pm in @INC

Install openssl on Linux and execute the configuration command

[root@Cryptography openssl-3.0.0]# ./config --prefix=/usr/local/openssl-3.0.0 --openr/local/openssl-3.0.0

The error is as follows:
insert image description here
Solution:

yum -y install perl-IPC-Cmd

This is the installation-related dependencies, execute again:

[root@Cryptography openssl-3.0.0]# ./config --prefix=/usr/local/openssl-3.0.0 --openr/local/openssl-3.0.0

Then the following error occurs:
insert image description here
Solution:
Step 1: Install gcc

[root@Cryptography openssl-3.0.0]# yum install gcc-c++

Step 2: Install the perl regular expression library

[root@Cryptography openssl-3.0.0]# yum install -y pcre-devel

Step 3: Install zlib

[root@Cryptography openssl-3.0.0]# yum install -y zlib-dev

execute again

[root@Cryptography openssl-3.0.0]# ./config --prefix=/usr/local/openssl-3.0.0 --openr/local/openssl-3.0.0

insert image description here

Guess you like

Origin blog.csdn.net/qq_41977843/article/details/125524691