-
Notifications
You must be signed in to change notification settings - Fork 104
Description
export OR_PREFIX=/usr/local/openresty
export openssl_prefix=/usr/local/tongsuo
export zlib_prefix=$OR_PREFIX/zlib
export pcre_prefix=$OR_PREFIX/pcre
export cc_opt="-DNGX_LUA_ABORT_AT_PANIC -I${zlib_prefix}/include -I${pcre_prefix}/include -I${openssl_prefix}/include"
export ld_opt="-L${zlib_prefix}/lib -L${pcre_prefix}/lib -L${openssl_prefix}/lib64 -Wl,-rpath,${zlib_prefix}/lib:${pcre_prefix}/lib:${openssl_prefix}/lib64"
./build-apisix-runtime.sh
cd Tongsuo-8.4-stable
./config shared enable-ntls -g --prefix=$OPENSSL_PREFIX
make -j2
make install_sw
用以上脚本安装Tongsuo后,还需要安装openssl吗?如果要安装,参数应该怎么设置,未安装opsnssl的情况下,configure报错了
[2025-03-20 10:21:07] checking for PCRE2 library ... not found
[2025-03-20 10:21:07] checking for PCRE library ... found
[2025-03-20 10:21:07] checking for PCRE JIT support ... found
[2025-03-20 10:21:07] checking for OpenSSL library ... not found
[2025-03-20 10:21:07] checking for OpenSSL library in /usr/local/ ... not found
[2025-03-20 10:21:07] checking for OpenSSL library in /usr/pkg/ ... not found
[2025-03-20 10:21:08] checking for OpenSSL library in /opt/local/ ... not found
[2025-03-20 10:21:08] checking for OpenSSL library in /opt/homebrew/ ... not found
[2025-03-20 10:21:08]
[2025-03-20 10:21:08] ./configure: error: SSL modules require the OpenSSL library.
[2025-03-20 10:21:08] You can either do not enable the modules, or install the OpenSSL library
[2025-03-20 10:21:08] into the system, or build the OpenSSL library statically from the source
[2025-03-20 10:21:08] with nginx by using --with-openssl= option.
[2025-03-20 10:21:08]
[2025-03-20 10:21:08] ERROR: failed to run command: sh ./configure --prefix=/usr/local/openresty/nginx ...