|
|
@ -10,7 +10,7 @@ rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
serverPath=$(dirname "$rootPath") |
|
|
|
serverPath=$(dirname "$rootPath") |
|
|
|
sourcePath=${serverPath}/source/php |
|
|
|
sourcePath=${serverPath}/source/php |
|
|
|
|
|
|
|
SYS_ARCH=`arch` |
|
|
|
LIBNAME=memcache |
|
|
|
LIBNAME=memcache |
|
|
|
LIBV=2.2.7 |
|
|
|
LIBV=2.2.7 |
|
|
|
sysName=`uname` |
|
|
|
sysName=`uname` |
|
|
@ -52,10 +52,17 @@ Install_lib() |
|
|
|
php_lib=$sourcePath/php_lib |
|
|
|
php_lib=$sourcePath/php_lib |
|
|
|
mkdir -p $php_lib |
|
|
|
mkdir -p $php_lib |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d $php_lib/${LIBNAME}-${LIBV} ];then |
|
|
|
wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz |
|
|
|
wget -O $php_lib/${LIBNAME}-${LIBV}.tgz http://pecl.php.net/get/${LIBNAME}-${LIBV}.tgz |
|
|
|
|
|
|
|
|
|
|
|
cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz |
|
|
|
cd $php_lib && tar xvf ${LIBNAME}-${LIBV}.tgz |
|
|
|
cd ${LIBNAME}-${LIBV} |
|
|
|
cd ${LIBNAME}-${LIBV} |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONS="" |
|
|
|
|
|
|
|
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then |
|
|
|
|
|
|
|
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
$serverPath/php/$version/bin/phpize |
|
|
|
$serverPath/php/$version/bin/phpize |
|
|
|
./configure --with-php-config=$serverPath/php/$version/bin/php-config --enable-memcache --with-zlib-dir |
|
|
|
./configure --with-php-config=$serverPath/php/$version/bin/php-config --enable-memcache --with-zlib-dir |
|
|
|
make clean && make && make install && make clean |
|
|
|
make clean && make && make install && make clean |
|
|
|