pull/632/head
Mr Chen 6 months ago
parent 0b37a34528
commit 39a1c1e6e0
  1. 27
      plugins/php/versions/82/install.sh
  2. 6
      plugins/php/versions/83/install.sh
  3. 5
      plugins/php/versions/84/install.sh

@ -73,7 +73,10 @@ cd $sourcePath/php/php${PHP_VER}
OPTIONS='--without-iconv' OPTIONS='--without-iconv'
if [ $sysName == 'Darwin' ]; then if [ $sysName == 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-curl" BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}
LIB_DEPEND_DIR=`brew info curl | grep ${BREW_DIR}/Cellar/curl | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="${OPTIONS} --with-curl=$LIB_DEPEND_DIR"
else else
OPTIONS="${OPTIONS} --with-curl" OPTIONS="${OPTIONS} --with-curl"
OPTIONS="${OPTIONS} --with-readline" OPTIONS="${OPTIONS} --with-readline"
@ -150,6 +153,28 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then
--disable-fileinfo \ --disable-fileinfo \
$OPTIONS \ $OPTIONS \
--enable-fpm --enable-fpm
echo "./configure \
--prefix=$serverPath/php/${PHP_VER} \
--exec-prefix=$serverPath/php/${PHP_VER} \
--with-config-file-path=$serverPath/php/${PHP_VER}/etc \
--enable-mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-zlib-dir=$serverPath/lib/zlib \
$ZIP_OPTION \
--enable-mbstring \
--enable-ftp \
--enable-sockets \
--enable-simplexml \
--enable-soap \
--enable-posix \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--disable-intl \
--disable-fileinfo \
$OPTIONS \
--enable-fpm"
make clean && make -j${cpuCore} && make install && make clean make clean && make -j${cpuCore} && make install && make clean
# rm -rf $sourcePath/php/php${PHP_VER} # rm -rf $sourcePath/php/php${PHP_VER}

@ -72,7 +72,11 @@ cd $sourcePath/php/php${PHP_VER}
OPTIONS='--without-iconv' OPTIONS='--without-iconv'
if [ $sysName == 'Darwin' ]; then if [ $sysName == 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-curl" # BREW_DIR=`which brew`
# BREW_DIR=${BREW_DIR/\/bin\/brew/}
# LIB_DEPEND_DIR=`brew info curl | grep ${BREW_DIR}/Cellar/curl | cut -d \ -f 1 | awk 'END {print}'`
# OPTIONS="${OPTIONS} --with-curl=$LIB_DEPEND_DIR"
echo "curl"
else else
OPTIONS="${OPTIONS} --with-curl" OPTIONS="${OPTIONS} --with-curl"
OPTIONS="${OPTIONS} --with-readline" OPTIONS="${OPTIONS} --with-readline"

@ -14,7 +14,7 @@ function version_le() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)"
function version_lt() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" != "$1"; } function version_lt() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" != "$1"; }
function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"; } function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"; }
version=8.4.0RC2 version=8.4.1
PHP_VER=84 PHP_VER=84
Install_php() Install_php()
{ {
@ -36,8 +36,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
# wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://www.php.net/distributions/php-${version}.tar.xz wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://www.php.net/distributions/php-${version}.tar.xz
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://downloads.php.net/~calvinb/php-${version}.tar.xz
fi fi
#检测文件是否损坏. #检测文件是否损坏.

Loading…
Cancel
Save