GNU/Linux >> Linux Esercitazione >  >> Linux

pcre.h:nessun file o directory di questo tipo Errore durante l'installazione di una cache PHP alternativa [Risolto]

Domanda: Ciao techglimpse, grazie per aver risposto alla mia precedente domanda su phpize. Ora sono bloccato con un altro errore durante l'installazione di APC: pcre.h:nessun file o directory simile . Questo errore si è verificato quando ho utilizzato pecl comando per installare APC come di seguito:

# 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
::::::::::::::::::::

Di seguito è riportato l'istantanea dell'errore durante il "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

Per favore aiutami a correggere questo errore – Grazie Maneesh.

Soluzione:

L'errore significa che non hai "pcre-devel ' installato. Esegui il comando seguente.

Su CentOS, macchina RHEL:

# yum install pcre-devel

Su Ubuntu, Debian – usa apt-get:

# apt-get install libpcre3-dev

Questo dovrebbe risolvere pcre.h errore non trovato.


Linux
  1. Installazione di Alternative PHP Cache (APC) sul server

  2. Kubuntu mostra un errore all'accesso (file:///usr/share/sddm//themes/breeze/main.qml:no Such File Or Directory)?

  3. Come systemd-tmpfiles pulisce /tmp/ o /var/tmp (sostituzione di tmpwatch) in CentOS/RHEL 7

  4. Errore Linux durante il caricamento delle librerie condivise:impossibile aprire il file oggetto condiviso:file o directory non presenti

  5. cp:impossibile creare la directory:file o directory non presenti

Rimuovere in modo sicuro /var/cache?

Errore con gradlew:/usr/bin/env:bash:Nessun file o directory

Django static_root in /var/www/... - nessuna autorizzazione a collectstatic

Errore irreversibile:cuda.h:file o directory non presenti

Come modificare /tmp predefinito in /home/user/tmp

Differenza e uso corretto per /tmp e /var/tmp