ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# pcre.h: No such file or directory 编译swoole扩展出现 ``` fatal error: pcre.h: No such file or directory ``` 原因是缺少pcre,需要安装libpcre ubuntu/debian: ----- ```shell sudo apt-get install libpcre3 libpcre3-dev ``` centos/redhat: ---- ```shell sudo yum install pcre-devel ``` 其他Linux: ---- 到[PCRE官方网站](http://www.pcre.org/)下载源码包,编译安装`pcre`库。 安装好`PCRE`库后需要重新编译安装`swoole`,然后使用`php --ri swoole`查看`swoole`扩展相关信息中是否有`pcre => enabled`