diff --git a/plugins/php/versions/53/mongo.sh b/plugins/php/versions/53/mongo.sh index c4a942a29..8de38ed85 100755 --- a/plugins/php/versions/53/mongo.sh +++ b/plugins/php/versions/53/mongo.sh @@ -38,7 +38,8 @@ Install_lib() OPTIONS='' if [ $sysName == 'Darwin' ]; then - OPTIONS="--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2q" + LIB_DEPEND_DIR=`brew info openssl | grep /usr/local/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'` + OPTIONS="--with-openssl-dir=${LIB_DEPEND_DIR}" fi if [ -f $php_lib/${LIBNAME}-${LIBV} ];then diff --git a/plugins/php/versions/54/memcache.sh b/plugins/php/versions/54/memcache.sh index 2ab91d1b5..6a26023d7 100755 --- a/plugins/php/versions/54/memcache.sh +++ b/plugins/php/versions/54/memcache.sh @@ -27,15 +27,19 @@ Install_lib() fi if [ ! -f "$extFile" ];then + php_lib=$sourcePath/php_lib mkdir -p $php_lib + if [ ! -f $php_lib/${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 + fi + cd $php_lib/${LIBNAME}-${LIBV} - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize - ./configure --with-php-config=$serverPath/php/$version/bin/php-config --enable-memcache --with-zlib-dir + ./configure --with-php-config=$serverPath/php/$version/bin/php-config \ + --enable-memcache \ + --with-zlib-dir make && make install && make clean fi diff --git a/plugins/php/versions/54/memcached.sh b/plugins/php/versions/54/memcached.sh index e84a6d9fc..0fa337fd4 100755 --- a/plugins/php/versions/54/memcached.sh +++ b/plugins/php/versions/54/memcached.sh @@ -32,13 +32,16 @@ Install_lib() php_lib=$sourcePath/php_lib mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz + if [ ! -f $php_lib/${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 + fi + cd $php_lib/${LIBNAME}-${LIBV} - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config \ - --enable-memcache --with-zlib-dir=$serverPath/lib/zlib \ + --enable-memcache \ + --with-zlib-dir=$serverPath/lib/zlib \ --with-libmemcached-dir=$serverPath/lib/libmemcached make && make install && make clean diff --git a/plugins/php/versions/54/mongo.sh b/plugins/php/versions/54/mongo.sh index 708b7f600..015caff1e 100755 --- a/plugins/php/versions/54/mongo.sh +++ b/plugins/php/versions/54/mongo.sh @@ -25,26 +25,26 @@ Install_lib() echo "php$version 已安装${LIBNAME},请选择其它版本!" return fi - - + if [ ! -f "$extFile" ];then + OPTIONS='' + if [ $sysName == 'Darwin' ]; then + LIB_DEPEND_DIR=`brew info openssl | grep /usr/local/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'` + OPTIONS="--with-openssl-dir=${LIB_DEPEND_DIR}" + fi + php_lib=$sourcePath/php_lib mkdir -p $php_lib - - if [ ! -f $php_lib/${LIBNAME}-${LIBV}.tgz ];then + if [ ! -f $php_lib/${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 fi + cd $php_lib/${LIBNAME}-${LIBV} - OPTIONS='' - if [ $sysName == 'Darwin' ]; then - OPTIONS="--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2q" - fi - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize - ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS + ./configure --with-php-config=$serverPath/php/$version/bin/php-config \ + $OPTIONS make && make install && make clean diff --git a/plugins/php/versions/55/mongo.sh b/plugins/php/versions/55/mongo.sh index 2894ec407..29cc1e7b0 100755 --- a/plugins/php/versions/55/mongo.sh +++ b/plugins/php/versions/55/mongo.sh @@ -31,7 +31,8 @@ Install_lib() OPTIONS='' if [ $sysName == 'Darwin' ]; then - OPTIONS="--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2q" + LIB_DEPEND_DIR=`brew info openssl | grep /usr/local/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'` + OPTIONS="--with-openssl-dir=${LIB_DEPEND_DIR}" fi php_lib=$sourcePath/php_lib diff --git a/plugins/php/versions/55/swoole.sh b/plugins/php/versions/55/swoole.sh index e62431eb7..35d38960c 100755 --- a/plugins/php/versions/55/swoole.sh +++ b/plugins/php/versions/55/swoole.sh @@ -13,13 +13,9 @@ sourcePath=${serverPath}/source/php actionType=$1 version=$2 - - LIBNAME=swoole -LIBV='1.10.1'; -if [ "$version" = '70' ] || [ "$version" = '71' ] || [ "$version" = '72' ];then - LIBV='2.2.0' -fi +LIBV=1.10.1 + extFile=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20121212/${LIBNAME}.so @@ -45,7 +41,8 @@ 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 diff --git a/plugins/php/versions/56/mongo.sh b/plugins/php/versions/56/mongo.sh index 1194a5b27..893338902 100755 --- a/plugins/php/versions/56/mongo.sh +++ b/plugins/php/versions/56/mongo.sh @@ -29,20 +29,21 @@ Install_lib() if [ ! -f "$extFile" ];then + OPTIONS='' + if [ $sysName == 'Darwin' ]; then + LIB_DEPEND_DIR=`brew info openssl | grep /usr/local/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'` + OPTIONS="--with-openssl-dir=${LIB_DEPEND_DIR}" + fi + php_lib=$sourcePath/php_lib mkdir -p $php_lib if [ ! -f $php_lib/${LIBNAME}-${LIBV}.tgz ];then wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz + cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz fi + cd $php_lib/${LIBNAME}-${LIBV} - OPTIONS='' - if [ $sysName == 'Darwin' ]; then - OPTIONS="--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2q" - fi - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS diff --git a/plugins/php/versions/70/swoole.sh b/plugins/php/versions/70/swoole.sh index 3438f939c..5835f678f 100755 --- a/plugins/php/versions/70/swoole.sh +++ b/plugins/php/versions/70/swoole.sh @@ -32,14 +32,19 @@ Install_lib() php_lib=$sourcePath/php_lib mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - cd $php_lib - tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + if [ ! -f $php_lib/${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 + fi + + cd $php_lib/${LIBNAME}-${LIBV} $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 diff --git a/plugins/php/versions/71/imagemagick.sh b/plugins/php/versions/71/imagemagick.sh index a65eb3731..59ca9db4e 100755 --- a/plugins/php/versions/71/imagemagick.sh +++ b/plugins/php/versions/71/imagemagick.sh @@ -26,19 +26,20 @@ Install_lib() return fi - if [ ! -f "$extFile" ];then php_lib=$sourcePath/php_lib mkdir -p $php_lib + if [ ! -f $php_lib/${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 + fi + cd $php_lib/${LIBNAME}-${LIBV} - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config \ - --enable-memcache --with-zlib-dir=$serverPath/lib/zlib \ + --enable-memcache \ + --with-zlib-dir=$serverPath/lib/zlib \ --with-libmemcached-dir=$serverPath/lib/libmemcached make && make install && make clean diff --git a/plugins/php/versions/71/swoole.sh b/plugins/php/versions/71/swoole.sh index 91763f4c9..80519a567 100755 --- a/plugins/php/versions/71/swoole.sh +++ b/plugins/php/versions/71/swoole.sh @@ -13,10 +13,9 @@ sourcePath=${serverPath}/source/php actionType=$1 version=$2 - - LIBNAME=swoole LIBV=4.3.0 + extFile=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20160303/${LIBNAME}.so Install_lib() @@ -41,7 +40,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 diff --git a/plugins/php/versions/71/xdebug.sh b/plugins/php/versions/71/xdebug.sh index 2c2486b83..adc525fca 100755 --- a/plugins/php/versions/71/xdebug.sh +++ b/plugins/php/versions/71/xdebug.sh @@ -32,10 +32,12 @@ Install_lib() php_lib=$sourcePath/php_lib mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + if [ ! -f $php_lib/${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 + fi + cd $php_lib/${LIBNAME}-${LIBV} + $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config make && make install && make clean diff --git a/plugins/php/versions/71/yac.sh b/plugins/php/versions/71/yac.sh index ac76a1ee4..9a8787897 100755 --- a/plugins/php/versions/71/yac.sh +++ b/plugins/php/versions/71/yac.sh @@ -34,12 +34,14 @@ Install_lib() php_lib=$sourcePath/php_lib - mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - cd $php_lib - tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + + if [ ! -f $php_lib/${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 + fi + cd $php_lib/${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/71/yaf.sh b/plugins/php/versions/71/yaf.sh index 0174aa2a8..a2bf970e4 100755 --- a/plugins/php/versions/71/yaf.sh +++ b/plugins/php/versions/71/yaf.sh @@ -15,10 +15,8 @@ actionType=$1 version=$2 LIBNAME=yaf -LIBV='2.3.5' -if [ "$version" = '70' ] || [ "$version" = '71' ] || [ "$version" = '72' ] || [ "$version" = '73' ];then - LIBV='3.0.7'; -fi +LIBV=3.0.7 + extFile=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20160303/${LIBNAME}.so Install_lib() @@ -33,12 +31,13 @@ Install_lib() if [ ! -f "$extFile" ];then php_lib=$sourcePath/php_lib - mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - cd $php_lib - tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + if [ ! -f $php_lib/${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 + fi + cd $php_lib/${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/71/yar.sh b/plugins/php/versions/71/yar.sh index f4d4f58b0..d32b84d7c 100755 --- a/plugins/php/versions/71/yar.sh +++ b/plugins/php/versions/71/yar.sh @@ -36,12 +36,14 @@ Install_lib() php_lib=$sourcePath/php_lib - mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - cd $php_lib - tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + if [ ! -f $php_lib/${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 + fi + + cd $php_lib/${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize echo "./configure --with-php-config=$serverPath/php/$version/bin/php-config \ diff --git a/plugins/php/versions/72/solr.sh b/plugins/php/versions/72/solr.sh index e4ba57a7f..084797eec 100755 --- a/plugins/php/versions/72/solr.sh +++ b/plugins/php/versions/72/solr.sh @@ -29,21 +29,21 @@ Install_lib() extFile=$extDir${LIBNAME}.so if [ ! -f "$extFile" ];then + + OPTIONS='' + if [ $sysName == 'Darwin' ]; then + OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl" + fi php_lib=$sourcePath/php_lib mkdir -p $php_lib if [ ! -f $php_lib/${LIBNAME}-${LIBV}.tgz ];then wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz + cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz fi - - OPTIONS='' - if [ $sysName == 'Darwin' ]; then - OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl" - fi - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + + cd $php_lib/${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS make && make install && make clean diff --git a/plugins/php/versions/73/imagemagick.sh b/plugins/php/versions/73/imagemagick.sh index 728861390..8d068ccad 100755 --- a/plugins/php/versions/73/imagemagick.sh +++ b/plugins/php/versions/73/imagemagick.sh @@ -32,13 +32,16 @@ Install_lib() php_lib=$sourcePath/php_lib mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + if [ ! -f $php_lib/${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 + fi + + cd $php_lib/${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config \ - --enable-memcache --with-zlib-dir=$serverPath/lib/zlib \ + --enable-memcache \ + --with-zlib-dir=$serverPath/lib/zlib \ --with-libmemcached-dir=$serverPath/lib/libmemcached make && make install && make clean diff --git a/plugins/php/versions/73/memcached.sh b/plugins/php/versions/73/memcached.sh index ba2172bfd..82b65224e 100755 --- a/plugins/php/versions/73/memcached.sh +++ b/plugins/php/versions/73/memcached.sh @@ -30,14 +30,16 @@ Install_lib() php_lib=$sourcePath/php_lib mkdir -p $php_lib + if [ ! -f $php_lib/${LIBNAME}-${LIBV}.tgz ];then + wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz + cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz + fi + cd $php_lib/${LIBNAME}-${LIBV} - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config \ - --enable-memcache --with-zlib-dir=$serverPath/lib/zlib \ + --enable-memcache \ + --with-zlib-dir=$serverPath/lib/zlib \ --with-libmemcached-dir=$serverPath/lib/libmemcached \ --disable-memcached-sasl && \ make && make install && make clean diff --git a/plugins/php/versions/73/mongodb.sh b/plugins/php/versions/73/mongodb.sh index 77a08120b..a5439dc33 100755 --- a/plugins/php/versions/73/mongodb.sh +++ b/plugins/php/versions/73/mongodb.sh @@ -25,21 +25,20 @@ Install_lib() echo "php$version 已安装${LIBNAME},请选择其它版本!" return fi - - + if [ ! -f "$extFile" ];then php_lib=$sourcePath/php_lib mkdir -p $php_lib + if [ ! -f $php_lib/${LIBNAME}-${LIBV}.tgz ];then + wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz + cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz + fi + cd $php_lib/${LIBNAME}-${LIBV} - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config make && make install && make clean - fi if [ ! -f "$extFile" ];then diff --git a/plugins/php/versions/73/redis.sh b/plugins/php/versions/73/redis.sh index a55ed4f58..72878d2d0 100755 --- a/plugins/php/versions/73/redis.sh +++ b/plugins/php/versions/73/redis.sh @@ -32,19 +32,16 @@ Install_lib() php_lib=$sourcePath/php_lib mkdir -p $php_lib - if [ ! -f $php_lib/${LIBNAME}-${LIBV}.tgz ];then wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz + cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz fi + cd $php_lib/${LIBNAME}-${LIBV} - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config make && make install && make clean - # cd $php_lib - # rm -rf ${LIBNAME}-* fi if [ ! -f "$extFile" ];then diff --git a/plugins/php/versions/73/seaslog.sh b/plugins/php/versions/73/seaslog.sh index afd1a934f..9a41c6504 100755 --- a/plugins/php/versions/73/seaslog.sh +++ b/plugins/php/versions/73/seaslog.sh @@ -30,20 +30,19 @@ Install_lib() extFile=$extDir${LIBNAME}.so if [ ! -f "$extFile" ];then + OPTIONS='' + if [ $sysName == 'Darwin' ]; then + OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl" + fi + php_lib=$sourcePath/php_lib mkdir -p $php_lib - if [ ! -f $php_lib/${LIBNAME}-${LIBV}.tgz ];then wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz + cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz fi + cd $php_lib/${LIBNAME}-${LIBV} - OPTIONS='' - if [ $sysName == 'Darwin' ]; then - OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl" - fi - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config make && make install && make clean diff --git a/plugins/php/versions/73/solr.sh b/plugins/php/versions/73/solr.sh index 8db5e40d8..b2c4557d3 100755 --- a/plugins/php/versions/73/solr.sh +++ b/plugins/php/versions/73/solr.sh @@ -30,20 +30,20 @@ Install_lib() extFile=$extDir${LIBNAME}.so if [ ! -f "$extFile" ];then + OPTIONS='' + if [ $sysName == 'Darwin' ]; then + OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl" + fi + php_lib=$sourcePath/php_lib mkdir -p $php_lib - + if [ ! -f $php_lib/${LIBNAME}-${LIBV}.tgz ];then wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz + cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz fi - OPTIONS='' - if [ $sysName == 'Darwin' ]; then - OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl" - fi - - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + cd $php_lib/${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS make && make install && make clean diff --git a/plugins/php/versions/73/swoole.sh b/plugins/php/versions/73/swoole.sh index 9981ab597..14ce41c38 100755 --- a/plugins/php/versions/73/swoole.sh +++ b/plugins/php/versions/73/swoole.sh @@ -32,14 +32,18 @@ Install_lib() php_lib=$sourcePath/php_lib mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - cd $php_lib - tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + if [ ! -f $php_lib/${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 + fi + cd $php_lib/${LIBNAME}-${LIBV} $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 diff --git a/plugins/php/versions/73/xdebug.sh b/plugins/php/versions/73/xdebug.sh index 1d1a4064f..e57d09bb7 100755 --- a/plugins/php/versions/73/xdebug.sh +++ b/plugins/php/versions/73/xdebug.sh @@ -32,14 +32,15 @@ Install_lib() php_lib=$sourcePath/php_lib mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz + if [ ! -f $php_lib/${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 + fi + cd $php_lib/${LIBNAME}-${LIBV} - cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config make && make install && make clean - fi if [ ! -f "$extFile" ];then diff --git a/plugins/php/versions/73/yac.sh b/plugins/php/versions/73/yac.sh index 0ae8cae61..9afbd7995 100755 --- a/plugins/php/versions/73/yac.sh +++ b/plugins/php/versions/73/yac.sh @@ -30,16 +30,16 @@ Install_lib() fi if [ ! -f "$extFile" ];then - - php_lib=$sourcePath/php_lib - mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - cd $php_lib - tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + + if [ ! -f $php_lib/${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 + fi + + cd $php_lib/${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/73/yaf.sh b/plugins/php/versions/73/yaf.sh index 794b8ba8b..8424e53aa 100755 --- a/plugins/php/versions/73/yaf.sh +++ b/plugins/php/versions/73/yaf.sh @@ -32,16 +32,15 @@ Install_lib() fi if [ ! -f "$extFile" ];then - - php_lib=$sourcePath/php_lib - mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - cd $php_lib - tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + if [ ! -f $php_lib/${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 + fi + cd $php_lib/${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config diff --git a/plugins/php/versions/73/yar.sh b/plugins/php/versions/73/yar.sh index 5b01816a5..d3acba7e2 100755 --- a/plugins/php/versions/73/yar.sh +++ b/plugins/php/versions/73/yar.sh @@ -36,12 +36,14 @@ Install_lib() php_lib=$sourcePath/php_lib - mkdir -p $php_lib - wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz - cd $php_lib - tar xvf ${LIBNAME}-${LIBV}.tgz - cd ${LIBNAME}-${LIBV} + + if [ ! -f $php_lib/${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 + fi + cd $php_lib/${LIBNAME}-${LIBV} $serverPath/php/$version/bin/phpize echo "./configure --with-php-config=$serverPath/php/$version/bin/php-config \