mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -31,7 +31,8 @@ Install_lib()
|
||||
|
||||
OPTIONS=''
|
||||
if [ $sysName == 'Darwin' ]; then
|
||||
OPTIONS="--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2q"
|
||||
LIB_DEPEND_DIR=`brew info openssl | grep /usr/local/Cellar/openssl | cut -d \ -f 1 | awk 'END {print}'`
|
||||
OPTIONS="--with-openssl-dir=${LIB_DEPEND_DIR}"
|
||||
fi
|
||||
|
||||
php_lib=$sourcePath/php_lib
|
||||
|
||||
@@ -13,13 +13,9 @@ sourcePath=${serverPath}/source/php
|
||||
|
||||
actionType=$1
|
||||
version=$2
|
||||
|
||||
|
||||
LIBNAME=swoole
|
||||
LIBV='1.10.1';
|
||||
if [ "$version" = '70' ] || [ "$version" = '71' ] || [ "$version" = '72' ];then
|
||||
LIBV='2.2.0'
|
||||
fi
|
||||
LIBV=1.10.1
|
||||
|
||||
extFile=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20121212/${LIBNAME}.so
|
||||
|
||||
|
||||
@@ -45,7 +41,8 @@ Install_lib()
|
||||
|
||||
$serverPath/php/$version/bin/phpize
|
||||
./configure --with-php-config=$serverPath/php/$version/bin/php-config \
|
||||
--enable-openssl --with-openssl-dir=$serverPath/lib/openssl --enable-sockets
|
||||
--enable-openssl --with-openssl-dir=$serverPath/lib/openssl \
|
||||
--enable-sockets
|
||||
make && make install && make clean
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user