![Does swoole currently not support windows?](https://img.php.cn/upload/article/000/000/029/5deb169e1156a678.jpg)
The swoole framework is a very magical and powerful framework, which makes up for some of the shortcomings of PHP itself. In fact, swoole is a PHP extension written in C language, but this extension cannot be used on Windows systems. (Recommended learning: swoole video tutorial )
Cygwin is a UNIX-like simulation environment running on the windows platform. Since it is a simulation environment, it is easy to handle! Next We officially start to talk about how to build a swoole environment
1. Download Swoole and Cygwin
![1575603486788410.png Does swoole currently not support windows?](https://img.php.cn/upload/image/183/855/366/1575603486788410.png)
##Download Cygwin, my It is 64-bit
21 Install Cygwin
![1575603526751062.png Does swoole currently not support windows?](https://img.php.cn/upload/image/480/312/151/1575603526751062.png)
Select the software package to install, you need to install it here gcc, php, php development tools, autoconf, pcre-devel, and other defaults. Note here that after searching in the search bar above, find the corresponding software package below and select it, and click the Next button to start the installation.
(Note: The screenshot below is the interface after I installed it. The click position is the same, but the icons behind may be different)
First search for gcc
![1575603536151261.png Does swoole currently not support windows?](https://img.php.cn/upload/image/105/348/229/1575603536151261.png)
Then php
![1575603557638323.png Does swoole currently not support windows?](https://img.php.cn/upload/image/908/700/335/1575603557638323.png)
Then pcre-devel
![1575603569546353.png Does swoole currently not support windows?](https://img.php.cn/upload/image/378/625/504/1575603569546353.png)
Finally autoconf
![1575603581467330.png Does swoole currently not support windows?](https://img.php.cn/upload/image/800/430/241/1575603581467330.png)
In the end, just go to the next step to install.
![1575603591286293.png Does swoole currently not support windows?](https://img.php.cn/upload/image/143/363/280/1575603591286293.png)
2 Install Swoole
Extract the source program of swoole to the Cygwin home directory and open the Cygwin software (note: if your Cygwin is also installed on the C drive, then you have to pay attention. There may be an error when installing swoole. The solution is to right-click Open Cygwin as an administrator)
![1575604275276771.png Does swoole currently not support windows?](https://img.php.cn/upload/image/916/846/989/1575604275276771.png)
1 The environment at this time is like a Linux terminal, and the root directory is the Cygwin installation directory. Enter the command in the interface: cd /home/ swoole-src, where swoole-src is the decompressed source program
![1575604036579651.png Does swoole currently not support windows?](https://img.php.cn/upload/image/844/919/207/1575604036579651.png)
2 The environment at this time is like a Linux terminal, and the root directory is the Cygwin installation directory , enter the command on the interface: cd /home/swoole-src, where swoole-src is the decompressed source program
![1575604046760613.png Does swoole currently not support windows?](https://img.php.cn/upload/image/234/539/153/1575604046760613.png)
3 Enter the command: phpize to generate the compiled Configuration file configure
![1575604062220990.png Does swoole currently not support windows?](https://img.php.cn/upload/image/444/838/152/1575604062220990.png)
4 Enter the command: ./configure && make && make install
![1575604077445974.png Does swoole currently not support windows?](https://img.php.cn/upload/image/861/360/964/1575604077445974.png)
##Configure, compile, compile Install swoole
(PS: Execute ./configure, in addition to compiling the configuration, it will also detect the environment, etc.)
5Use the command: php -i | grep php.ini to find The path to the configuration file php.ini used by php cli, modify the php.ini file, add a line in the file: extension=swoole.so, then close and exit
![1575604093383484.png Does swoole currently not support windows?](https://img.php.cn/upload/image/288/950/407/1575604093383484.png)
6 /extension Search Press n to search again
![1575604104692841.png Does swoole currently not support windows?](https://img.php.cn/upload/image/597/322/344/1575604104692841.png)
7 Add extension=swoole.so
![1575604117939582.png Does swoole currently not support windows?](https://img.php.cn/upload/image/958/216/235/1575604117939582.png)
8 :wq Save and exit
9 Use the command: php -m to view the loaded modules. If you see swoole, the extension is added successfully and the environment is successfully built!
![1575604128204444.png Does swoole currently not support windows?](https://img.php.cn/upload/image/250/308/984/1575604128204444.png)
The above is the detailed content of Does swoole currently not support windows?. For more information, please follow other related articles on the PHP Chinese website!