Manual:Common errors and symptoms/PCRE/pt-br

PCRE é um biblioteca de Expressões Regulares Compatíveis com Perl que acompanha o PHP. Ao tentar instalar ou atualizar para o MediaWiki 1.22 ou posterior, você receberá a seguinte mensagem de erro:

Fatal: PCRE newer version or later is required. Your PHP binary is linked with version older version.

This issue may occur if you are using an older Linux distribution (one having an older version of PCRE than that bundled with PHP) and PHP is compiled with the  configure option. In particular, the  packages from Red Hat Enterprise Linux 5 (and derivatives such as CentOS and Scientific Linux) are broken in this regard. MediaWiki uses features introduced in the newer version of PCRE and no longer works with older versions of the library.

Below are several methods to upgrade the PCRE library your PHP installation uses.

Selecionando um pacote PHP mais recente
Some servers will allow you to select an alternative (later) version of PHP to use with one or more domains, that includes a later version of PCRE. For example, servers running Plesk 11.5+, let you select a domain, and change the hosting to use a fastCGI version of PHP (if none are available, your hosting company may install them). While the server default PHP 5.3.3 is packaged with PCRE 6.6, selecting fastCGI PHP 5.4.25 includes PCRE 8.1

Instalando pacotes PHP mais recentes
For Red Hat Enterprise Linux 5 and its derivatives, there are several third-party package repositories that have newer versions of PHP compiled without the option in question. Here are some of them:


 * IUS Community Project
 * Les RPMs de Remi

Note that these packages are not supported by Red Hat, by any other Linux vendor, or by the MediaWiki developers.

Recompilando o PHP da fonte
If you compiled PHP yourself using the source code from php.net, you should be able to recompile it to use the newer, bundled version of PCRE:


 * Run  again without the   option
 * Run  and/or   again