Skip to content

Commit 81d68d4

Browse files
[Ubuntu] install libpcre2-8-0 for PHP compat (#4551)
1 parent 2790cec commit 81d68d4

File tree

1 file changed

+6
-0
lines changed
  • images/linux/scripts/installers

1 file changed

+6
-0
lines changed

images/linux/scripts/installers/php.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ source $HELPER_SCRIPTS/install.sh
1313
apt-add-repository ppa:ondrej/php -y
1414
apt-get update
1515

16+
# install specific version of libpcre2 otherwise latest ppa-hosted php fails
17+
# https://github.com/oerdnj/deb.sury.org/issues/1682
18+
if isUbuntu20 ; then
19+
apt-get install -y libpcre2-8-0
20+
fi
21+
1622
# Install PHP
1723
php_versions=$(get_toolset_value '.php.versions[]')
1824

0 commit comments

Comments
 (0)