This commit is contained in:
midoks
2019-11-30 16:55:45 +08:00
parent 1617bd521a
commit d2160f388d
85 changed files with 217 additions and 197 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php$version 已安装${LIBNAME},请选择其它版本!"
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
fi
+1 -1
View File
@@ -22,7 +22,7 @@ Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php$version 已安装${LIBNAME},请选择其它版本!"
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
fi
+1 -1
View File
@@ -22,7 +22,7 @@ Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php$version 已安装${LIBNAME},请选择其它版本!"
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
fi
+1 -1
View File
@@ -22,7 +22,7 @@ Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php$version 已安装${LIBNAME},请选择其它版本!"
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
fi
+1 -1
View File
@@ -22,7 +22,7 @@ Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php$version 已安装${LIBNAME},请选择其它版本!"
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
fi
+1 -1
View File
@@ -22,7 +22,7 @@ Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php$version 已安装${LIBNAME},请选择其它版本!"
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
fi
+1 -1
View File
@@ -23,7 +23,7 @@ Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php$version 已安装${LIBNAME},请选择其它版本!"
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
fi
+3 -2
View File
@@ -12,6 +12,7 @@ serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source/php
LIBNAME=SeasLog
_LIBNAME=$(echo $LIBNAME | tr '[A-Z]' '[a-z]')
LIBV=2.0.2
sysName=`uname`
actionType=$1
@@ -21,9 +22,9 @@ extDir=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20100525/
Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${_LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php$version 已安装${LIBNAME},请选择其它版本!"
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
fi
+1 -1
View File
@@ -23,7 +23,7 @@ Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php$version 已安装${LIBNAME},请选择其它版本!"
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
fi
+6 -5
View File
@@ -14,9 +14,8 @@ sourcePath=${serverPath}/source/php
actionType=$1
version=$2
LIBNAME=swoole
LIBV='1.10.1';
LIBV='1.10.1'
if [ "$version" = '70' ] || [ "$version" = '71' ] || [ "$version" = '72' ];then
LIBV='2.2.0'
fi
@@ -26,7 +25,7 @@ extFile=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20100525/
Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep '${LIBNAME}.so'`
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
@@ -36,7 +35,7 @@ Install_lib()
php_lib=$sourcePath/php_lib
mkdir -p $php_lib
if [ -f ${LIBNAME}-${LIBV} ];then
if [ ! -d ${LIBNAME}-${LIBV} ];then
wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz
cd $php_lib
tar xvf ${LIBNAME}-${LIBV}.tgz
@@ -45,7 +44,9 @@ Install_lib()
$serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config \
--enable-openssl --with-openssl-dir=$serverPath/lib/openssl --enable-sockets
--enable-openssl \
--with-openssl-dir=$serverPath/lib/openssl \
--enable-sockets
make && make install && make clean
fi
+1 -1
View File
@@ -22,7 +22,7 @@ Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
if [ "${isInstall}" != "" ];then
echo "php$version 已安装${LIBNAME},请选择其它版本!"
echo "php-$version 已安装${LIBNAME},请选择其它版本!"
return
fi