This commit is contained in:
midoks
2019-11-29 16:58:45 +08:00
parent 0187e10e62
commit 827b10cf63
5 changed files with 8 additions and 10 deletions
+3 -1
View File
@@ -12,7 +12,7 @@ serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source/php
LIBNAME=memcached
LIBV=3.1.3
LIBV=3.1.4
sysName=`uname`
actionType=$1
version=$2
@@ -35,6 +35,8 @@ Install_lib()
cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz
cd ${LIBNAME}-${LIBV}
sed -i '_bak' "3237,3238s#ulong#zend_ulong#g" $php_lib/${LIBNAME}-${LIBV}/php_memcached.c
$serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config \
--enable-memcache --with-zlib-dir=$serverPath/lib/zlib \
+2 -2
View File
@@ -12,7 +12,7 @@ serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source/php
LIBNAME=redis
LIBV=4.2.0
LIBV=5.1.1
sysName=`uname`
actionType=$1
version=$2
@@ -41,7 +41,7 @@ Install_lib()
cd ${LIBNAME}-${LIBV}
$serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config
make && make install
make && make install && make clean
# cd $php_lib
# rm -rf ${LIBNAME}-*
+1 -1
View File
@@ -16,7 +16,7 @@ version=$2
LIBNAME=swoole
LIBV=4.3.0
LIBV=4.4.12
extFile=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20190902/${LIBNAME}.so
Install_lib()
+1 -1
View File
@@ -12,7 +12,7 @@ serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source/php
LIBNAME=xdebug
LIBV=2.7.0
LIBV=2.8.0
sysName=`uname`
actionType=$1
version=$2
+1 -5
View File
@@ -11,8 +11,6 @@ rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source/php
actionType=$1
version=$2
@@ -30,8 +28,6 @@ Install_lib()
fi
if [ ! -f "$extFile" ];then
php_lib=$sourcePath/php_lib
@@ -43,7 +39,7 @@ Install_lib()
$serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config
make && make install
make && make install && make clean
cd ..
rm -rf yaf-*
rm -f package.xml