Linux编译OpenSSL 3.0.0

# 下载特定版本
wget https://www.openssl.org/source/old/3.0/openssl-3.0.0-alpha3.tar.gz
tar -xvf openssl-3.0.0-alpha3.tar.gz && cd openssl-3.0.0-alpha3
# 配置编译安装动作并生成 Makefile 文件
./config no-shared -no-tests --prefix=/usr/local/ssl --openssldir=/usr/local/ssl '-Wl,-rpath,$(LIBRPATH)'
# 使用4个线程编译 && 安装
make -j4 && make install
# 检查版本
openssl version

高版本编译报错:https://blog.51cto.com/lihuahaitang/6238712

Can't locate IPC/Cmd.pm in @INC (@INC contains: /opt/openssl-3.0.8/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 . /opt/openssl-3.0.8/external/perl/Text-Template-1.56/lib) at /opt/openssl-3.0.8/util/perl/OpenSSL/config.pm line 19.
BEGIN failed--compilation aborted at /opt/openssl-3.0.8/util/perl/OpenSSL/config.pm line 19.
Compilation failed in require at /opt/openssl-3.0.8/Configure line 23.
BEGIN failed--compilation aborted at /opt/openssl-3.0.8/Configure line 23.
make[1]: *** [/opt/openssl-3.0.8/.openssl/include/openssl/ssl.h] 错误 2
posted @ 2023-10-22 23:27  黄河大道东  阅读(70)  评论(0编辑  收藏  举报