0
checking for PCRE library ... found  
checking for PCRE JIT support ... found  
checking for OpenSSL library ... not found   
checking for OpenSSL library in /usr/local/ ... not found       
checking for OpenSSL library in /usr/pkg/ ... not found   
checking for OpenSSL library in /opt/local/ ... not found  
./configure: error: SSL modules require the OpenSSL library.You can either do not enable the modules, or install the OpenSSL libraryinto the system, or build the OpenSSL library statically from the sourcewith nginx by using --with-openssl=<path> option.ERROR: failed to run command: sh ./configure --prefix=/usr/local/openresty/nginx \...

How do I solve this problem?

Ramhound
  • 44,080

1 Answers1

0

Download and compile OpenSSL:

cd /usr/local/src
curl --remote-name https://www.openssl.org/source/openssl-1.1.1d.tar.gz
tar -xzvf openssl-1.1.1d.tar.gz
cd openssl-1.1.1d
./config --prefix=/usr/local/openssl/
make
make install

Verify:

openssl version -a

This should get you started to compile OpenSSL yourself. Afterwards, configure should find the installation and use it.