💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# pcre.h: No such file or directory [TOC] 编译swoole扩展出现 ~~~ fatal error: pcre.h: No such file or directory ~~~ 原因是缺少pcre,需要安装libpcre ## ubuntu/debian: ~~~ sudo apt-get install libpcre3 libpcre3-dev ~~~ ## centos/redhat: ~~~ sudo yum install pcre-devel ~~~ ## 其他Linux: 到[PCRE官方网站](http://www.pcre.org/)下载源码包,编译安装`pcre`库。 安装好`PCRE`库后需要重新编译安装`swoole`,然后使用`php --ri swoole`查看`swoole`扩展相关信息中是否有`pcre => enabled`