fix: 解决 PHP 安装 imagick 失败的问题 (#138)

This commit is contained in:
zhengkunwang223
2023-06-05 15:24:21 +08:00
committed by GitHub
parent 7490d78a81
commit 8de035662c
11 changed files with 66 additions and 11 deletions
@@ -214,6 +214,11 @@ if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
install-php-extensions ioncube_loader install-php-extensions ioncube_loader
fi fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 7 4 isPhpVersionGreaterOrEqual 7 4
@@ -214,6 +214,11 @@ if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
install-php-extensions ioncube_loader install-php-extensions ioncube_loader
fi fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 7 4 isPhpVersionGreaterOrEqual 7 4
@@ -214,6 +214,11 @@ if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
install-php-extensions ioncube_loader install-php-extensions ioncube_loader
fi fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 7 4 isPhpVersionGreaterOrEqual 7 4
@@ -213,6 +213,11 @@ if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
install-php-extensions ioncube_loader install-php-extensions ioncube_loader
fi fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 8 0 isPhpVersionGreaterOrEqual 8 0
@@ -213,6 +213,11 @@ if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
install-php-extensions ioncube_loader install-php-extensions ioncube_loader
fi fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 8 0 isPhpVersionGreaterOrEqual 8 0
@@ -213,6 +213,11 @@ if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
install-php-extensions ioncube_loader install-php-extensions ioncube_loader
fi fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 8 0 isPhpVersionGreaterOrEqual 8 0
@@ -213,6 +213,11 @@ if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
install-php-extensions ioncube_loader install-php-extensions ioncube_loader
fi fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 8 0 isPhpVersionGreaterOrEqual 8 0
@@ -213,6 +213,11 @@ if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
install-php-extensions ioncube_loader install-php-extensions ioncube_loader
fi fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 8 0 isPhpVersionGreaterOrEqual 8 0
@@ -213,6 +213,11 @@ if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
install-php-extensions ioncube_loader install-php-extensions ioncube_loader
fi fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 8 0 isPhpVersionGreaterOrEqual 8 0
@@ -213,6 +213,11 @@ if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
install-php-extensions ioncube_loader install-php-extensions ioncube_loader
fi fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 8 0 isPhpVersionGreaterOrEqual 8 0
@@ -213,6 +213,11 @@ if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
install-php-extensions ioncube_loader install-php-extensions ioncube_loader
fi fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
install-php-extensions imagick
fi
if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then
echo "---------- Install gd ----------" echo "---------- Install gd ----------"
isPhpVersionGreaterOrEqual 8 0 isPhpVersionGreaterOrEqual 8 0