修改bug
This commit is contained in:
parent
f7720fff01
commit
9827362d16
@ -81,6 +81,11 @@ function install_extension() {
|
|||||||
yum -y install librabbitmq-devel
|
yum -y install librabbitmq-devel
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
imagick)
|
||||||
|
if [ `rpm -qa|grep ImageMagick-devel|wc -l` == 0 ];then
|
||||||
|
yum -y install ImageMagick-devel
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
grep_file=$1'-devel'
|
grep_file=$1'-devel'
|
||||||
if [ `echo $1|grep pdo_|wc -l` != 0 ];then
|
if [ `echo $1|grep pdo_|wc -l` != 0 ];then
|
||||||
|
|||||||
@ -51,6 +51,7 @@ esac
|
|||||||
if [ `$php -m|grep $extension|wc -l` == 0 ];then
|
if [ `$php -m|grep $extension|wc -l` == 0 ];then
|
||||||
ext_dir=$PWD'/package/'$php_file_dir'/ext'
|
ext_dir=$PWD'/package/'$php_file_dir'/ext'
|
||||||
extension_dir=$ext_dir'/'$extension
|
extension_dir=$ext_dir'/'$extension
|
||||||
|
install_extension $extension
|
||||||
if [ ! -d $extension_dir ];then
|
if [ ! -d $extension_dir ];then
|
||||||
$pecl install $extension
|
$pecl install $extension
|
||||||
pecl_error=$?
|
pecl_error=$?
|
||||||
@ -64,7 +65,6 @@ if [ `$php -m|grep $extension|wc -l` == 0 ];then
|
|||||||
if [ 'a'$dir_extension != 'a' ];then
|
if [ 'a'$dir_extension != 'a' ];then
|
||||||
rm -rf $dir_extension
|
rm -rf $dir_extension
|
||||||
fi
|
fi
|
||||||
install_extension $extension
|
|
||||||
cd $extension_dir
|
cd $extension_dir
|
||||||
if [ -f $extension_dir'/config0.m4' ] && [ ! -f $extension_dir'/config.m4' ];then
|
if [ -f $extension_dir'/config0.m4' ] && [ ! -f $extension_dir'/config.m4' ];then
|
||||||
cp $extension_dir'/config0.m4' $extension_dir'/config.m4'
|
cp $extension_dir'/config0.m4' $extension_dir'/config.m4'
|
||||||
|
|||||||
@ -7,7 +7,7 @@ type=mysql
|
|||||||
package=http://mirrors.163.com/mysql/Downloads/MySQL-5.5/mysql-5.5.61.tar.gz
|
package=http://mirrors.163.com/mysql/Downloads/MySQL-5.5/mysql-5.5.61.tar.gz
|
||||||
[php]
|
[php]
|
||||||
package=https://www.php.net/distributions/php-7.1.29.tar.bz2
|
package=https://www.php.net/distributions/php-7.1.29.tar.bz2
|
||||||
php_extension=curl,gd,pdo_mysql,pgsql,pdo_pgsql,session,sockets,openssl,mysqli,mbstring,zip,zlib,xsl,xmlwriter,mcrypt,soap,snmp,shmop
|
php_extension=bcmath,ctype,curl,filter,gd,iconv,imagick,libxml,mbstring,openssl,pdo_pgsql,redis,session,sockets,amqp
|
||||||
[lib]
|
[lib]
|
||||||
apr_package=http://www.apache.org/dist/apr/apr-1.7.0.tar.bz2
|
apr_package=http://www.apache.org/dist/apr/apr-1.7.0.tar.bz2
|
||||||
apr_util_package=http://www.apache.org/dist/apr/apr-util-1.6.1.tar.bz2
|
apr_util_package=http://www.apache.org/dist/apr/apr-util-1.6.1.tar.bz2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user