This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 485a395a3 fix: install dependencies issues (#7092)
485a395a3 is described below

commit 485a395a36024cd4f346b0c146ac9d1c55890553
Author: 程治玮 <[email protected]>
AuthorDate: Mon May 23 17:27:00 2022 +0800

    fix: install dependencies issues (#7092)
---
 utils/install-dependencies.sh   | 2 +-
 utils/linux-install-luarocks.sh | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/utils/install-dependencies.sh b/utils/install-dependencies.sh
index fc0b03de0..11851cbae 100755
--- a/utils/install-dependencies.sh
+++ b/utils/install-dependencies.sh
@@ -46,7 +46,7 @@ function install_dependencies_with_aur() {
 function install_dependencies_with_yum() {
     sudo yum install -y yum-utils
 
-    local common_dep="curl git gcc openresty-openssl111-devel unzip pcre 
pcre-devel openldap-devel"
+    local common_dep="curl wget git gcc openresty-openssl111-devel unzip pcre 
pcre-devel openldap-devel"
     if [ "${1}" == "centos" ]; then
         # add APISIX source
         local apisix_pkg=apache-apisix-repo-1.0-1.noarch
diff --git a/utils/linux-install-luarocks.sh b/utils/linux-install-luarocks.sh
index a8d1bafd0..71c6ea2f0 100755
--- a/utils/linux-install-luarocks.sh
+++ b/utils/linux-install-luarocks.sh
@@ -53,5 +53,11 @@ if [ -d ${OPENRESTY_PREFIX}/openssl111 ]; then
     OPENSSL_PREFIX=${OPENRESTY_PREFIX}/openssl111
 fi
 
+FOUND_PATH=$(echo "${PATH}" | grep -oP '(?<=:|)/usr/local/bin(?=:|)') || true
+if [[ "${FOUND_PATH}" == "" ]]; then
+   echo "Warning: the path /usr/local/bin is not included in the system 
default PATH variable."
+   export PATH=$PATH:/usr/local/bin
+fi
+
 luarocks config variables.OPENSSL_LIBDIR ${OPENSSL_PREFIX}/lib
 luarocks config variables.OPENSSL_INCDIR ${OPENSSL_PREFIX}/include

Reply via email to