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
##Download Cygwin, my It is 64-bit
21 Install Cygwin
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 gcc2 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
6 /extension Search Press n to search again
7 Add extension=swoole.so
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!
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!