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: https://github.com/swoole/swoole-src/releases
One. Download Swoole and Cygwin
Download Cygwin, mine is 64-bit
21 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
Then PHP
It's pcre-devel.
Last autoconf
Finally, the next step is to install the line.
2 Install Swoole decompression 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, in 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 the Linux terminal, And the root directory is the Cygwin installation directory, the interface input command: CD/HOME/SWOOLE-SRC, where swool-src is the source of the extracted 3 input command: phpize, generate the compiled configuration file configure4 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!
PS Original from http://www.cnblogs.com/ventent/p/6939857.html
Good notes, Quick collection.
Installation Swoole specific steps under Windows