Pregunta: Hola techglimpse, gracias por responder a mi consulta anterior sobre phpize. Ahora tengo otro error al instalar APC: pcre.h:no existe tal archivo o directorio . Este error ocurrió cuando usé pecl Comando para instalar APC como se muestra a continuación:
# pecl install apc ARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-upd ate pecl.php.net" to update downloading APC-3.1.13.tgz ... Starting to download APC-3.1.13.tgz (171,591 bytes) .....................................done: 171,591 bytes 55 source files, building running: phpize :::::::::::::::::::: running: make ::::::::::::::::::::
A continuación se muestra la instantánea del error durante 'make'
/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory In file included from /var/tmp/APC/apc.c:45: /usr/include/php/ext/pcre/php_pcre.h:37: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token /usr/include/php/ext/pcre/php_pcre.h:38: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token /usr/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-lis t before âpcreâ /var/tmp/APC/apc.c:449: error: expected specifier-qualifier-list before âpcreâ /var/tmp/APC/apc.c: In function âapc_regex_compile_arrayâ: /var/tmp/APC/apc.c:510: error: âapc_regexâ has no member named âpregâ /var/tmp/APC/apc.c:510: error: âapc_regexâ has no member named âpregâ /var/tmp/APC/apc.c:511: error: âapc_regexâ has no member named ânregâ /var/tmp/APC/apc.c:511: error: âapc_regexâ has no member named ânregâ /var/tmp/APC/apc.c: In function âapc_regex_match_arrayâ: /var/tmp/APC/apc.c:552: error: âapc_regexâ has no member named âpregâ /var/tmp/APC/apc.c:552: error: âapc_regexâ has no member named âpregâ /var/tmp/APC/apc.c:553: error: âapc_regexâ has no member named ânregâ /var/tmp/APC/apc.c:553: error: âapc_regexâ has no member named ânregâ make: *** [apc.lo] Error 1 ERROR: `make' failed
Por favor, ayúdenme a corregir este error. Gracias, Maneesh.
El error significa que no tiene 'pcre-devel ' instalado. Ejecute el siguiente comando.
En CentOS, máquina RHEL:
# yum install pcre-devel
En Ubuntu, Debian:use apt-get:
# apt-get install libpcre3-dev
Eso debería arreglar pcre.h error no encontrado.