pull/504/head
Mr Chen 2 years ago
parent 664852c26f
commit 8fd3476126
  1. 4
      plugins/php/lib/libiconv.sh
  2. 11
      plugins/php/versions/common/gettext.sh
  3. 4
      plugins/php/versions/common/gmp.sh
  4. 4
      plugins/php/versions/common/iconv.sh
  5. 4
      plugins/php/versions/common/imagemagick.sh
  6. 1
      scripts/install/macos.sh

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

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

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

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

@ -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!'
}

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

Loading…
Cancel
Save