pull/109/head
Mr Chen 6 years ago
parent 9406409c16
commit 997399cc9f
  1. 6
      plugins/php/versions/73/install.sh
  2. 18
      scripts/lib.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 \

@ -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

Loading…
Cancel
Save