The following small series for everyone to bring a piece of Windows installation Swoole Graphics Tutorial (PHP). Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
Windows installation Swoole specific steps:
Swoole, originally not supported in Windows installation, so we want to install Cygwin to use. In the installation of Cygwin encountered a lot of pits, Baidu experience on the document is not very full, so I put myself installed Cygwin and swoole write down the equivalent of their own precipitation bar.
First, prepare the tool:
Cygwin Official Address: http://www.cygwin.com/
Swoole Official Download Address: https://github.com/swoole/swoole-src/releases
First, download swoole and Cygwin
Download Cygwin, mine is 64-bit
1 Installing Cygwin
Choose the installed package, here need to install GCC, PHP, PHP development tools, autoconf, Pcre-devel, the other default, here is to note that in the search bar above, find the corresponding package selected below, click the Next button to start the installation. (Note: Below is my post-installation interface, click on the same location, the following icons may not be the same OH)
Search for GCC first
Finally, the next step is to install the line.
2 Installing Swoole
Unzip Swoole source program to Cygwin home directory, open Cygwin software (note: If your Cygwin is also installed in the C drive, then you have to pay attention to the installation of swoole when there may be an error, the solution is to right-click the administrator to open the Cygwin)
1 at this time the environment is like a Linux terminal, and the root directory is the Cygwin installation directory, the interface input command: CD/HOME/SWOOLE-SRC, wherein SWOOL-SRC is the source of the decompression program
2 at this time the environment is like a Linux terminal, and the root directory is the Cygwin installation directory, the interface input command: CD/HOME/SWOOLE-SRC, wherein SWOOL-SRC is the source of the decompression program
3 input command: phpize, generate compiled configuration file configure
4 input command:./configure && make && make install
Configure, compile, and compile the installation Swoole
(PS: Execute./configure, in addition to compiling the configuration, will also detect the environment, etc.)
5 using the command: Php-i | grep php.ini, find the path to the configuration file php.ini used by the PHP CLI, modify the php.ini file, add a line to the file: extension=swoole.so, and then close the exit
6/extension Find press N to find again
7 Adding extension=swoole.so
8:wq Save exit
9 using the command: php-m, view the loaded module, if you see Swoole, then the extension added successfully, to this environment to build success!