From ec79bfc93bca74072f083c2338e38bc8b1b70c4d Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 10 Dec 2024 00:12:26 +0800 Subject: [PATCH] Update openssl.sh --- plugins/php/versions/common/openssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/php/versions/common/openssl.sh b/plugins/php/versions/common/openssl.sh index b76a61535..60f447db6 100755 --- a/plugins/php/versions/common/openssl.sh +++ b/plugins/php/versions/common/openssl.sh @@ -54,7 +54,7 @@ Install_lib() BREW_DIR=`which brew` BREW_DIR=${BREW_DIR/\/bin\/brew/} - LIB_DEPEND_DIR=`brew info openssl@1.1 | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'` + LIB_DEPEND_DIR=`brew info openssl@1.0 | grep ${BREW_DIR}/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'` export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig fi @@ -87,7 +87,7 @@ Install_lib() # otool -L /Users/midoks/Desktop/mwdev/server/php/83/lib/php/extensions/no-debug-non-zts-20230831/openssl.so # ldd /www/server/php/83/bin/php - if [ "$version" -lt "83" ] && [ "$sysName" == "Darwin" ];then + if [ "$version" -lt "84" ] && [ "$sysName" == "Darwin" ];then BREW_DIR=`which brew` BREW_DIR=${BREW_DIR/\/bin\/brew/} LIB_DEPEND_DIR=`brew info openssl@1.0 | grep ${BREW_DIR}/Cellar/openssl@1.0 | cut -d \ -f 1 | awk 'END {print}'`