This commit is contained in:
midoks
2019-11-29 19:22:16 +08:00
parent adbfe2fdef
commit f44710c0f1
5 changed files with 47 additions and 16 deletions
+10 -6
View File
@@ -31,17 +31,21 @@ Install_lib()
if [ ! -f "$extFile" ];then
php_lib=$sourcePath/php_lib
mkdir -p $php_lib
wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz
cd $php_lib
tar xvf ${LIBNAME}-${LIBV}.tgz
cd ${LIBNAME}-${LIBV}
if [ ! -f $php_lib/${LIBNAME}-${LIBV}.tgz ];then
wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz
cd $php_lib
tar xvf ${LIBNAME}-${LIBV}.tgz
fi
cd $php_lib/${LIBNAME}-${LIBV}
$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
fi
while [[ ! -f "$extFile" ]];