mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user