在试了官网上的办法无效后,可以试试下面这个。 安装完 swoole 后出现 libhiredis.so.0.13: cannot open shared object file: No such file or directory in Unknown on line 0, 缺少动态库,也可以这样 1步. vim /etc/ld.so.conf 2步 添加 /usr/local/lib
mac下brew install php后用pecl安装swoole报错找不到pcre2.h In file included from /private/tmp/pear/temp/swoole/ext-src/php_swoole.cc:21:/usr/local/Cellar/php/8.0.0_1/include/php/ext/pcre/php_pcre.h:23:10: fatal