pcre2.h missing on Brew PHP setups
Los mantenedores suelen responder en 1 día
@asgrim ya está trabajando en esto.
Desde el 6/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
What are you trying to do?
pie install apcu/apcu (or other packages that need pcre2.h)
What platform, and PIE version are you using?
on an OSX Apple Silicon, with PHP from Homebrew
Steps to reproduce the issue
pie install apcu/apcu
What do you expect to happen?
it should install
What is actually happening
In file included from /Users/james/.pie/php8.5_458f49e988810d5486f8103219b4e19c/vendor/apcu/apcu/apc_iterator.h:26:
/opt/homebrew/Cellar/php/8.5.11/include/php/ext/pcre/php_pcre.h:23:10: fatal error: 'pcre2.h' file not found
23 | #include "pcre2.h"
| ^~~~~~~~~
1 error generated.
Anything else?
Brew uses the system PCRE2 library rather than PHP's, so compiler can't find the header.
Workaround:
CPATH=/opt/homebrew/include pie install apcu/apcu
Options:
- Detect if external PCRE is used, and pass the appropriate build flags using
pkg-config --cflags libpcre2-8or similar. - Detect Homebrew (
buildProvider()) and add the include directory
- Lenguaje dominante
- PHP
- Estrellas
- 2k
- Forks
- 75
- Merge medio
- 17 h 50 min
- PR fusionados (30 d)
- 17
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de php/pie
-
Do not duplicate an ext in pie show output for dev versionsPosiblemente ocupada @asgrim la tomó hace 14 días. Abiertoenhancement maintainer investigating
Los mantenedores suelen responder en 1 día
-
Add self-update feature for executable PIEsPosiblemente ocupada @asgrim la tomó hace 25 días. Abiertoenhancement maintainer investigating
Los mantenedores suelen responder en 1 día
-
Allow building from existing sources on diskPosiblemente ocupada @asgrim la tomó hace 25 días. Abiertoenhancement maintainer investigating
php/pie#738 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Optionally remove build-only dependencies and bloat after installQuizá libre de nuevo @asgrim la tomó hace 147 días y no hay ningún pull request abierto. Abiertoenhancement maintainer investigating
php/pie#618 · 2 comentarios · 4 reacciones · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Display number of downloads/stars when results are shownQuizá libre de nuevo @asgrim la tomó hace 174 días y no hay ningún pull request abierto. Abiertoenhancement maintainer investigating
php/pie#592 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
fe: spell out "Auto increment" in the table editor, "AI" reads as artificial intelligence todayAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
landsman/adminer-desktop#120 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
L: java:gradle L: java:maven L: ruby:bundler T: bug 🐞
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
dependabot/dependabot-core#16547 ·
Los mantenedores suelen responder en 1 día
-
cloning objets from planningAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
glpi-project/glpi#25922 ·
Los mantenedores suelen responder en 1 día