I try to install openswoole
on my mac machine. I have this issue when installing it.
/usr/local/Cellar/[email protected]/7.4.29/include/php/ext/pcre/php_pcre.h:25:10: fatal error: pcre2.h: No such file or directory
#include "pcre2.h"
I used the command brew install pcre
to fix this issue as others recommend, but I always get the same result. I try to open the folder pcre
I only see one php_pcre.h
file inside it.
try:
sudo ln -s /opt/local/include/pcre.h /usr/include/ "replace your file location here"
sudo pecl install apc