Update openssl.sh

pull/632/head
Mr Chen 5 months ago
parent f3006b55b3
commit ec79bfc93b
  1. 4
      plugins/php/versions/common/openssl.sh

@ -54,7 +54,7 @@ Install_lib()
BREW_DIR=`which brew` BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/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 export PKG_CONFIG_PATH=$LIB_DEPEND_DIR/lib/pkgconfig
fi 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 # 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 # 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=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/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}'` LIB_DEPEND_DIR=`brew info openssl@1.0 | grep ${BREW_DIR}/Cellar/openssl@1.0 | cut -d \ -f 1 | awk 'END {print}'`

Loading…
Cancel
Save