diff --git a/plugins/php/versions/73/install.sh b/plugins/php/versions/73/install.sh index 87ac3c01f..9294c4572 100755 --- a/plugins/php/versions/73/install.sh +++ b/plugins/php/versions/73/install.sh @@ -32,21 +32,23 @@ OPTIONS='' if [ $sysName == 'Darwin' ]; then OPTIONS='--without-iconv' OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl" + OPTIONS="${OPTIONS} --enable-zip" else OPTIONS="--with-iconv=${serverPath}/lib/libiconv" OPTIONS="${OPTIONS} --with-gd --enable-gd-native-ttf" OPTIONS="${OPTIONS} --with-curl" + OPTIONS="${OPTIONS} --with-libzip=${serverPath}/lib/libzip" fi -# --with-zlib-dir=$serverPath/lib/zlib \ +# cd $sourcePath/php/php-${version} && ./configure \ --prefix=$serverPath/php/73 \ --exec-prefix=$serverPath/php/73 \ --with-config-file-path=$serverPath/php/73/etc \ --enable-mysqlnd \ ---enable-zip \ --enable-mbstring \ +--with-zlib-dir=$serverPath/lib/zlib \ --enable-ftp \ --enable-sockets \ --enable-simplexml \ diff --git a/scripts/lib.sh b/scripts/lib.sh index 3524130c6..ad2e57c99 100755 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -28,6 +28,23 @@ echo -e "Install_Zlib" >> ${libPath}/lib.pl } +Install_Libzip() +{ +#----------------------------- libzip start -------------------------# +if [ ! -d ${libPath}/libzip ];then + cd ${sourcePath} + if [ ! -f ${sourcePath}/libzip-1.2.0.tar.gz ];then + wget -O libzip-1.2.0.tar.gz https://nih.at/libzip/libzip-1.2.0.tar.gz -T 20 + fi + tar -zxf libzip-1.2.0.tar.gz + cd libzip-1.2.0 + ./configure --prefix=${libPath}/libzip && make && make install +fi +echo -e "Install_Libzip" >> ${libPath}/lib.pl +#----------------------------- libzip end -------------------------# +} + + Install_Libmemcached() { #----------------------------- libmemcached start -------------------------# @@ -188,6 +205,7 @@ echo -e "Install_Curl" >> ${libPath}/lib.pl } Install_Zlib +Install_Libzip Install_Libmemcached Install_OpenSSL Install_Libiconv