Hola, buenas tardes!!
Estamos instalando Gestión 3.20.0 sobre la 3.19.1 y al ejecutar:
composer install --prefer-dist --no-dev --optimize-autoloader
Nos da el siguiente error:
PHP Fatal error: Uncaught ErrorException: preg_match_all(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in phar:///usr/local/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php:137
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle()
#1 phar:///usr/local/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php(137): preg_match_all()
#2 phar:///usr/local/bin/composer/vendor/symfony/console/Output/Output.php(155): Symfony\Component\Console\Formatter\OutputFormatter->format()
#3 phar:///usr/local/bin/composer/vendor/symfony/console/Output/Output.php(132): Symfony\Component\Console\Output\Output->write()
#4 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(641): Symfony\Component\Console\Output\Output->writeln()
#5 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(127): Symfony\Component\Console\Application->renderException()
#6 phar:///usr/local/bin/composer/src/Composer/Console/Application.php(113): Symfony\Component\ in phar:///usr/local/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php on line 137
Fatal error: Uncaught ErrorException: preg_match_all(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in phar:///usr/local/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php:137
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle()
#1 phar:///usr/local/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php(137): preg_match_all()
#2 phar:///usr/local/bin/composer/vendor/symfony/console/Output/Output.php(155): Symfony\Component\Console\Formatter\OutputFormatter->format()
#3 phar:///usr/local/bin/composer/vendor/symfony/console/Output/Output.php(132): Symfony\Component\Console\Output\Output->write()
#4 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(641): Symfony\Component\Console\Output\Output->writeln()
#5 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(127): Symfony\Component\Console\Application->renderException()
#6 phar:///usr/local/bin/composer/src/Composer/Console/Application.php(113): Symfony\Component\ in phar:///usr/local/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php on line 137
El servidor es Linux Debian 9, PHP 7.4.26, Composer 1.10, Postgresql 11, Yarn 1.22.15.
Buscando en Internet vimos que se podría tratar de la librería PCRE desactualizada, instalamos Composer 2.0 pero sigue dando el mismo problema.
El phpinfo dice lo siguiente sobre pcre:
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 10.32 2018-09-10
PCRE Unicode Version 11.0.0
PCRE JIT Support enabled
PCRE JIT Target x86 64bit (little endian + unaligned)
A alguna universidad le pasó lo mismo y pudieron solucionarlo?
Muchas gracias!!
Saludos
Alberto