Update apc.sh

pull/5/head
midoks 5 years ago
parent 4a92866138
commit eda0911a2e
  1. 5
      plugins/php/versions/54/apc.sh

@ -12,6 +12,7 @@ serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source/php
LIBNAME=apc
_LIBNAME=$(echo $LIBNAME | tr '[a-z]' '[A-Z]')
LIBV=3.1.9
sysName=`uname`
actionType=$1
@ -36,12 +37,12 @@ Install_lib()
php_lib=$sourcePath/php_lib
mkdir -p $php_lib
if [ ! -d $php_lib/${LIBNAME}-${LIBV} ];then
if [ ! -d $php_lib/${_LIBNAME}-${LIBV} ];then
_LIBNAME=$(echo $LIBNAME | tr '[a-z]' '[A-Z]')
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}
cd $php_lib/${_LIBNAME}-${LIBV}
$serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config

Loading…
Cancel
Save