Skip to content

Commit

Permalink
fix openresty-debug dep
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinsRan committed Aug 2, 2023
1 parent 8f5c302 commit 5c07708
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ci/linux-install-openresty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ OPENSSL3_PREFIX=${OPENSSL3_PREFIX-/home/runner}
SSL_LIB_VERSION=${SSL_LIB_VERSION-openssl}

if [ "$OPENRESTY_VERSION" == "source" ]; then
sudo apt-get install -y openresty-openssl111-debug-dev libldap2-dev openresty-pcre-dev openresty-zlib-dev

export openssl_prefix=$OPENRESTY_PREFIX/openssl111
export zlib_prefix=$OPENRESTY_PREFIX/zlib
export pcre_prefix=$OPENRESTY_PREFIX/pcre
export zlib_prefix=/usr/local/openresty/zlib
export pcre_prefix=/usr/local/openresty/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}/lib -Wl,-rpath,${zlib_prefix}/lib:${pcre_prefix}/lib:${openssl_prefix}/lib"
Expand Down Expand Up @@ -79,7 +81,6 @@ if [ "$OPENRESTY_VERSION" == "source" ]; then
chmod +x build-apisix-base.sh
./build-apisix-base.sh latest

sudo apt-get install openresty-openssl111-debug-dev
exit 0
fi

Expand Down

0 comments on commit 5c07708

Please sign in to comment.