[Ubuntu] install libpcre2-8-0 for PHP compat (#4551)

This commit is contained in:
Mikhail Koliada
2021-11-21 19:32:23 +03:00
committed by GitHub
parent 2790cecf1f
commit 81d68d49b3

View File

@@ -13,6 +13,12 @@ source $HELPER_SCRIPTS/install.sh
apt-add-repository ppa:ondrej/php -y
apt-get update
# install specific version of libpcre2 otherwise latest ppa-hosted php fails
# https://github.com/oerdnj/deb.sury.org/issues/1682
if isUbuntu20 ; then
apt-get install -y libpcre2-8-0
fi
# Install PHP
php_versions=$(get_toolset_value '.php.versions[]')