1,下载Cygwin,安装是下载对应的包(gcc、make、autoconf、php、pcre-dev,libpcre2)
2,下载Swoole源码或者通过cygwin中的 wget下载
一定是源码:https://github.com/swoole/swoole-src/archive/v4.4.6.zip
swoole-release:https://github.com/swoole/swoole-src/releases
3,找到swoole目录
phpize ./configure
make
make install
相关错误:
pcre2.h:No such file or directory #include “pcre2.h”,
需要Cygwin安装libpcre2,安装后重新操作