From 1846af72713cde41eb3f85ff257c497b3f74a223 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 29 Nov 2024 00:23:07 +0800 Subject: [PATCH] update --- plugins/php/versions/53/install.sh | 2 +- plugins/php/versions/54/install.sh | 2 +- plugins/php/versions/55/install.sh | 2 +- plugins/php/versions/56/install.sh | 2 +- plugins/php/versions/70/install.sh | 2 +- plugins/php/versions/71/install.sh | 2 +- plugins/php/versions/72/install.sh | 2 +- plugins/php/versions/73/install.sh | 2 +- plugins/php/versions/74/install.sh | 2 +- plugins/php/versions/80/install.sh | 2 +- plugins/php/versions/81/install.sh | 2 +- plugins/php/versions/82/install.sh | 2 +- plugins/php/versions/83/install.sh | 2 +- plugins/php/versions/84/install.sh | 5 +++-- plugins/php/versions/all_mac.sh | 4 ++-- 15 files changed, 18 insertions(+), 17 deletions(-) diff --git a/plugins/php/versions/53/install.sh b/plugins/php/versions/53/install.sh index 5bd5a99e9..421caefd7 100755 --- a/plugins/php/versions/53/install.sh +++ b/plugins/php/versions/53/install.sh @@ -88,7 +88,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/54/install.sh b/plugins/php/versions/54/install.sh index 149acba46..e32ace308 100755 --- a/plugins/php/versions/54/install.sh +++ b/plugins/php/versions/54/install.sh @@ -90,7 +90,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/55/install.sh b/plugins/php/versions/55/install.sh index 01e26ecb6..96f869c46 100755 --- a/plugins/php/versions/55/install.sh +++ b/plugins/php/versions/55/install.sh @@ -83,7 +83,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/56/install.sh b/plugins/php/versions/56/install.sh index d9c5fcf18..3b7e8c060 100755 --- a/plugins/php/versions/56/install.sh +++ b/plugins/php/versions/56/install.sh @@ -87,7 +87,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/70/install.sh b/plugins/php/versions/70/install.sh index f2792f258..0e7d474e5 100755 --- a/plugins/php/versions/70/install.sh +++ b/plugins/php/versions/70/install.sh @@ -82,7 +82,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/71/install.sh b/plugins/php/versions/71/install.sh index 542db0efa..b5881c8f0 100755 --- a/plugins/php/versions/71/install.sh +++ b/plugins/php/versions/71/install.sh @@ -82,7 +82,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/72/install.sh b/plugins/php/versions/72/install.sh index 01f63f99e..5e2bb9142 100755 --- a/plugins/php/versions/72/install.sh +++ b/plugins/php/versions/72/install.sh @@ -80,7 +80,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/73/install.sh b/plugins/php/versions/73/install.sh index 2a538c05f..3d619b7d0 100755 --- a/plugins/php/versions/73/install.sh +++ b/plugins/php/versions/73/install.sh @@ -97,7 +97,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/74/install.sh b/plugins/php/versions/74/install.sh index 226affc6f..e21252768 100755 --- a/plugins/php/versions/74/install.sh +++ b/plugins/php/versions/74/install.sh @@ -119,7 +119,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/80/install.sh b/plugins/php/versions/80/install.sh index 57ae1c0aa..5ef789c72 100755 --- a/plugins/php/versions/80/install.sh +++ b/plugins/php/versions/80/install.sh @@ -110,7 +110,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/81/install.sh b/plugins/php/versions/81/install.sh index 784bc27cf..efbec9804 100755 --- a/plugins/php/versions/81/install.sh +++ b/plugins/php/versions/81/install.sh @@ -100,7 +100,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/82/install.sh b/plugins/php/versions/82/install.sh index 3a2bdd117..dc7b2c14a 100755 --- a/plugins/php/versions/82/install.sh +++ b/plugins/php/versions/82/install.sh @@ -101,7 +101,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/83/install.sh b/plugins/php/versions/83/install.sh index 406040830..979282dfd 100755 --- a/plugins/php/versions/83/install.sh +++ b/plugins/php/versions/83/install.sh @@ -101,7 +101,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/84/install.sh b/plugins/php/versions/84/install.sh index 67ad8147e..ea47ee991 100755 --- a/plugins/php/versions/84/install.sh +++ b/plugins/php/versions/84/install.sh @@ -57,7 +57,8 @@ cd $sourcePath/php/php${PHP_VER} OPTIONS='--without-iconv' if [ $sysName == 'Darwin' ]; then - OPTIONS="${OPTIONS} --with-curl" + # OPTIONS="${OPTIONS} --with-curl" + echo "curl pass" else OPTIONS="${OPTIONS} --with-curl" OPTIONS="${OPTIONS} --with-readline" @@ -82,7 +83,7 @@ if [ -f /proc/cpuinfo ];then cpuCore=`cat /proc/cpuinfo | grep "processor" | wc -l` fi -MEM_INFO=$(free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') +MEM_INFO=$(which free > /dev/null && free -m|grep Mem|awk '{printf("%.f",($2)/1024)}') if [ "${cpuCore}" != "1" ] && [ "${MEM_INFO}" != "0" ];then if [ "${cpuCore}" -gt "${MEM_INFO}" ];then cpuCore="${MEM_INFO}" diff --git a/plugins/php/versions/all_mac.sh b/plugins/php/versions/all_mac.sh index a771bd087..0a72317db 100644 --- a/plugins/php/versions/all_mac.sh +++ b/plugins/php/versions/all_mac.sh @@ -30,7 +30,7 @@ ROOT_DIR=$(cd "$(dirname "$0")"; pwd) # echo "php${PHP_VER} -- end" -PHP_VER_LIST=(54 55 56 70 71 72 73 74 80 81 82 83) +PHP_VER_LIST=(54 55 56 70 71 72 73 74 80 81 82 83 84) # PHP_VER_LIST=(81) for PHP_VER in ${PHP_VER_LIST[@]}; do echo "php${PHP_VER} -- start" @@ -41,7 +41,7 @@ for PHP_VER in ${PHP_VER_LIST[@]}; do done cd $DIR -PHP_VER_LIST=(54 55 56 70 71 72 73 74 80 81 82) +PHP_VER_LIST=(54 55 56 70 71 72 73 74 80 81 82 83 84) # yar PHP_EXT_LIST=(ZendGuardLoader pdo mysqlnd sqlite3 openssl opcache mcrypt fileinfo \ exif gd intl pcntl memcache memcached redis imagemagick xdebug \