centos7使用devtoolset-7编译openssl3
1.devtoolset安装及安装gcc-7
2.下载openssl3及编译
1 | scl enable devtoolset-7 bash |
openssl自动config异常
错误说明 Perl 模块缺失,导致 OpenSSL 的 ./config 脚本无法运行。OpenSSL 编译强依赖 Perl,尤其是 IPC::Cmd 模块。
错误信息:
1 | Can't locate IPC/Cmd.pm in @INC |
在 CentOS7 上:
1 | yum install -y perl perl-core |
然后安装缺失模块:
1 | yum install -y perl-IPC-Cmd |
确认模块存在:
1 | perl -MIPC::Cmd -e 'print "OK\n"' |
如果输出 OK 就说明模块可用。