pull/436/head
midoks 2 years ago
parent 0cd4527234
commit 4329d2470c
  1. 2
      plugins/php/versions/common/intl.sh
  2. 1
      plugins/php/versions/common/phalcon.sh
  3. 9
      plugins/php/versions/common/xhprof.sh
  4. 10
      plugins/php/versions/common/yaf.sh
  5. 8
      plugins/php/versions/common/yar.sh

@ -85,8 +85,6 @@ Install_lib()
fi fi
cd $sourcePath/php${version}/ext/${LIBNAME} cd $sourcePath/php${version}/ext/${LIBNAME}
OPTIONS=""
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi fi

@ -61,6 +61,7 @@ Install_lib()
fi fi
cd $php_lib/${LIBNAME}-${LIBV} cd $php_lib/${LIBNAME}-${LIBV}
OPTIONS=''
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi fi

@ -10,7 +10,7 @@ rootPath=$(dirname "$rootPath")
rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source/php sourcePath=${serverPath}/source/php
SYS_ARCH=`arch`
LIBNAME=xhprof LIBNAME=xhprof
LIBV=2.3.7 LIBV=2.3.7
sysName=`uname` sysName=`uname`
@ -53,9 +53,14 @@ Install_lib()
fi fi
cd $php_lib/${LIBNAME}-${LIBV}/extension cd $php_lib/${LIBNAME}-${LIBV}/extension
OPTIONS=''
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
$serverPath/php/$version/bin/phpize $serverPath/php/$version/bin/phpize
./configure --enable-xhprof \ ./configure --enable-xhprof \
--with-php-config=$serverPath/php/$version/bin/php-config --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS
make clean && make && make install && make clean make clean && make && make install && make clean
fi fi

@ -10,8 +10,7 @@ rootPath=$(dirname "$rootPath")
rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source/php sourcePath=${serverPath}/source/php
SYS_ARCH=`arch`
actionType=$1 actionType=$1
version=$2 version=$2
@ -70,8 +69,13 @@ Install_lib()
fi fi
cd $php_lib/${LIBNAME}-${LIBV} cd $php_lib/${LIBNAME}-${LIBV}
OPTIONS=''
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
$serverPath/php/$version/bin/phpize $serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS
make clean && make && make install && make clean make clean && make && make install && make clean
fi fi

@ -10,7 +10,7 @@ rootPath=$(dirname "$rootPath")
rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source/php sourcePath=${serverPath}/source/php
SYS_ARCH=`arch`
actionType=$1 actionType=$1
version=$2 version=$2
@ -55,8 +55,14 @@ Install_lib()
fi fi
cd $php_lib/${LIBNAME}-${LIBV} cd $php_lib/${LIBNAME}-${LIBV}
OPTIONS=''
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
$serverPath/php/$version/bin/phpize $serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config \ ./configure --with-php-config=$serverPath/php/$version/bin/php-config \
$OPTIONS \
--with-curl=$serverPath/lib/curl --with-curl=$serverPath/lib/curl
make clean && make && make install && make clean make clean && make && make install && make clean

Loading…
Cancel
Save