/usr/bin/perl util/mkinstallvars.pl PREFIX=. BINDIR=apps APPLINKDIR=ms LIBDIR= INCLUDEDIR=include “INCLUDEDIR=./include” ENGINESDIR=engines MODULESDIR=providers “VERSION=3.3.2” “LDLIBS=-lz -ldl -pthread ” > builddata.pm “pairs” is not exported by the List::Util module Can’t continue after import errors at util/mkinstallvars.pl line 14. BEGIN failed–compilation aborted at util/mkinstallvars.pl line 14.
提示是 List::Util 模块有问题
修复他
yum install cpan -y
sudo cpan List::Util
结果还是报错
/usr/bin/perl “-I.” “-Mconfigdata” “-Mbuilddata” “util/dofile.pl” “-oMakefile” exporters/cmake/OpenSSLConfig.cmake.in > OpenSSLConfig.cmake builddata.pm did not return a true value. BEGIN failed–compilation aborted. make: *** [OpenSSLConfig.cmake] 错误 255
看样子是配置的问题
make clean
sudo cpan IPC::Cmd
sudo cpan Exporter
./config enable-tls1_3 --prefix=/usr/local/openssl-3.3.2 --libdir=lib
make
sudo make install