This commit is contained in:
Mr Chen
2019-03-14 11:14:53 +08:00
parent e656c64fee
commit ef2a04e886
2 changed files with 22 additions and 2 deletions
+4 -2
View File
@@ -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 \
+18
View File
@@ -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