This commit is contained in:
Mr Chen
2023-11-10 19:06:31 +08:00
parent 664852c26f
commit 8fd3476126
6 changed files with 21 additions and 7 deletions
+2 -2
View File
@@ -26,12 +26,12 @@ if [ ! -d ${SERVER_ROOT}/libiconv ];then
if [ "$LOCAL_ADDR" == 'cn' ];then
if [ ! -f ${SOURCE_ROOT}/libiconv-1.15.tar.gz ];then
wget --no-check-certificate -O libiconv-1.15.tar.gz https://dl.midoks.me/lib/libiconv-1.15.tar.gz -T 20
wget --no-check-certificate -O ${SOURCE_ROOT}/libiconv-1.15.tar.gz https://dl.midoks.me/lib/libiconv-1.15.tar.gz -T 20
fi
fi
if [ ! -f ${SOURCE_ROOT}/libiconv-1.15.tar.gz ];then
wget --no-check-certificate -O libiconv-1.15.tar.gz https:/github.com/midoks/mdserver-web/releases/download/init/libiconv-1.15.tar.gz -T 5
wget --no-check-certificate -O ${SOURCE_ROOT}/libiconv-1.15.tar.gz https:/github.com/midoks/mdserver-web/releases/download/init/libiconv-1.15.tar.gz -T 5
fi
if [ ! -d ${SOURCE_ROOT}/libiconv-1.15 ];then
+8 -3
View File
@@ -54,6 +54,11 @@ Install_lib()
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
if [ "$sysName" == "Darwin" ];then
OPTIONS="$OPTIONS --with-gettext=$(brew --prefix gettext)"
fi
$serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS
@@ -65,9 +70,9 @@ Install_lib()
make clean && make && make install && make clean
if [ -d $sourcePath/php${version} ];then
cd ${sourcePath} && rm -rf $sourcePath/php${version}
fi
# if [ -d $sourcePath/php${version} ];then
# cd ${sourcePath} && rm -rf $sourcePath/php${version}
# fi
fi
if [ ! -f "$extFile" ];then
+4
View File
@@ -65,6 +65,10 @@ Install_lib()
# sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile
# fi
if [ "$sysName" == "Darwin" ];then
OPTIONS="$OPTIONS --with-gmp=$(brew --prefix gmp)"
fi
make clean && make && make install && make clean
if [ -d $sourcePath/php${version} ];then
+4
View File
@@ -60,6 +60,10 @@ Install_lib()
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
if [ "$sysName" == "Darwin" ];then
OPTIONS="$OPTIONS --with-iconv=${serverPath}/lib/libiconv"
fi
$serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS
make clean && make && make install && make clean
+2 -2
View File
@@ -84,7 +84,7 @@ Install_lib()
echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini
echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini
bash ${rootPath}/plugins/php/versions/lib.sh $version restart
cd ${curPath} && bash ${rootPath}/plugins/php/versions/lib.sh $version restart
echo '==========================================================='
echo 'successful!'
}
@@ -107,7 +107,7 @@ Uninstall_lib()
sed -i $BAK "/${LIBNAME}/d" $serverPath/php/$version/etc/php.ini
rm -f $extFile
bash ${rootPath}/plugins/php/versions/lib.sh $version restart
cd ${curPath} && bash ${rootPath}/plugins/php/versions/lib.sh $version restart
echo '==============================================='
echo 'successful!'
}
+1
View File
@@ -28,6 +28,7 @@ brew install librdkafka
brew install coreutils libxml2 xml2
brew install md5sum libevent pidof bison
brew install pcre2 libxpm libelf
brew install automake
if [ ! -d $DEV/server/mdserver-web ]; then
wget -O /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master